Skip to content

deepstreamIO/deepstream.io-cache-memcached

Repository files navigation

deepstream.io-cache-memcached

Build Status Coverage Status npm Dependency Status devDependency Status

A deepstream.io cache connector for memcached

This connector uses the npm memcached package. Please have a look there for detailed options.

##Basic Setup

plugins:
  cache:
    name: memcached
    options:
      serverLocation: ${MEMCACHED_URL}
var Deepstream = require( 'deepstream.io' ),
    MemcachedConnector = require( 'deepstream.io-cache-memcached' ),
    server = new Deepstream();

server.set( 'cache', new MemcachedConnector({
  serverLocation: 'localhost:11211'
}));

server.start();