1.0.12 • Published 5 years ago

swint-redis-cache v1.0.12

Weekly downloads
64
License
MIT
Repository
github
Last release
5 years ago

swint-redis-cache

Greenkeeper badge Redis cache for Swint

Warning: This is not the final draft yet, so do not use this until its official version is launched

Installation

$ npm install --save swint-redis-cache

Options

  • host : String, default: 'localhost'
  • pass : String, default: ''
  • port : Number, default: 6379
  • db : Number, default: 0
  • Methods
    • .set(key, data, ttl, callback)
      • key : String
      • data : Object
      • ttl : Number
      • callback: Function
    • .get(key, callback)
      • key : String
      • callback: Function

Usage

var cacheInst;

new RedisCache(cred, function(err, redisCache) {
	cacheInst = redisCache;
	// ...
});

// ...

cacheInst.set('foo', data, 30, function(err, reply) {
	// ...
});

cacheInst.get('foo', function(err, reply) {
	// ...
});
1.0.12

5 years ago

1.0.11

6 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.1.0

9 years ago