1.0.4 • Published 8 years ago

@donotjs/donot-cache-redis v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
8 years ago

donot-cache-redis

Build Status

Redis cache engine for donot.

How to Use

Usage:

new RedisCache()
new RedisCache(port)
new RedisCache(port, host)

port defaults to 6379 and host to 127.0.0.1.

Example

var http = require('http'),
    donot = require('donot'),
    RedisCache = require('donot-cache-redis');

var server = http.createServer(donot(__dirname + '/public', {
    cache: new RedisCache(6379, '127.0.0.1')
}));

server.listen(8000);

Remark. It does not make sense to use caching without one or more engine plug-ins - as only an engine's output is cached. See donot for available engine plug-ins.

License

MIT

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago