express-redis-render-cache

1.0.1 • Public • Published

The tests in this module flush Redis DB 15 to change the test DB use REDIS_DB=num to override


Usage

Requires Node V6

Cache Key generation

const supportedQuerystrings = {
    key: true, // Accepts all values
    complex: () => {} // Return a boolean
};

Basic

    const cache = expressRedisCache(supportedQuerystrings);

    app.use(cache);

Named

    const cache = expressRedisCache('blogPosts', supportedQuerystrings);

    app.use('/blog', cache); // OR
    app.use(cache);

Package Sidebar

Install

npm i express-redis-render-cache

Weekly Downloads

3

Version

1.0.1

License

ISC

Last publish

Collaborators

  • alexmeah