good-guy-cache-redis

1.2.0 • Public • Published

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)

Readme

Keywords

Package Sidebar

Install

npm i good-guy-cache-redis

Weekly Downloads

1

Version

1.2.0

License

ISC

Last publish

Collaborators

  • kjarmicki
  • wasyl