This package has been deprecated

Author message:

This package is no longer actively maintained.

@donotjs/donot-cache-redis

1.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @donotjs/donot-cache-redis

Weekly Downloads

3

Version

1.0.4

License

MIT

Last publish

Collaborators

  • trenskow_deprecated