Skip to content

descript-org/descript-memcached

Repository files navigation

Build Status NPM version

descript2-memcached

Usage

const de = require('descript2');
const deMemcached = require('descript2-memcached');

const context = new de.Context(req, res, {
    cache: new deMemcached(myCacheConfig)  
});

Config

{
    servers: 'my-memcached-server:9000'// memcached servers @see https://github.com/3rd-Eden/memcached#options
    defaultKeyTTL: 60 * 60 * 24, // key ttl in seconds
    generation: 1, // increment generation to invalidate all key across breaking changes releases
    readTimeout: 100, // read timeout in milliseconds,
    memcachedOptions: {}, // @see https://github.com/3rd-Eden/memcached#options
}

About

memcached plugin for descript2

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •