genericcache

0.0.3 • Public • Published

Generic Cache

A very simple generic interface for caching stuff with switchable backends.

Example

var cache = genericCache(options.cache === 'memcached' ? genericMemcachedCache : genericMemoryCache, options.cacheOptions),
cache.get(cacheKey, function (err, result) {});
cache.set(cacheKey, result, ttl);

Readme

Keywords

none

Package Sidebar

Install

npm i genericcache

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • voxpelli