Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 888 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 888 Bytes

Build Status Coverage Status

Redis cache implementation for Good Guy HTTP.

Usage

var RedisCache = require('good-guy-cache-redis');

var cache = new RedisCache({
    host: 'redis.host', port: 1234, options: { ...native RedisClient options...},

    auth: ...      // if set, will be sent with a Redis AUTH command right after connecting
    ttl: 60 * 30,  // time-to-live for cached values, in seconds
                   // (set to Infinity if they should never expire)
                   // (default is 24h)