This package has been deprecated

Author message:

This package is no longer actively maintained.

smart-static-redis-cache

1.0.1 • Public • Published

smart-static-redis-cache

Build Status

File system cache engine for smart-static.

How to Use

Usage:

redisCache()
redisCache(port)
redisCache(port, host)

port defaults to 6379 and host to 127.0.0.1.

Example

var http = require('http');

var smartStatic = require('smart-static');
var redisCache = require('smart-static-redis-cache');

var server = http.createServer(smartStatic(serveDir, {
    cache: redisCache(6379, '127.0.0.1')
));

server.listen(8000);

Remark. It does not make sense to use caching without template engine plug-ins - as only template renderings are cached. See smart-static for available template plug-ins.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i smart-static-redis-cache

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • trenskow
  • trenskow_deprecated