1.0.4 • Published 8 years ago
@donotjs/donot-cache-redis v1.0.4
donot-cache-redis
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