1.3.0 • Published 8 years ago

distribucache-console-logger v1.3.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

Distribucache Console Logger

Build Status NPM version

Log all events emitted by Distribucache to the stdout / stderr. This logger was designed to be used for debugging the cache.

Note: requires Distribucache version >=6.0.0.

Usage

import distribucache from 'distribucache';
import memoryStore from 'distribucache-memory-store';
import logEvents from 'distribucache-console-logger';

const cacheClient = distribucache.createClient(memoryStore());
const cache = cacheClient.create('nsp');

logEvents(cache, {namespace: 'nsp'});

cache.get('k', (err, value) => {
  //...
});

API

logEvents(cache, options) - where cache is distribucache and options are described below

Possible options values:

{String} [options.namespace]

License

MIT

1.3.0

8 years ago

1.1.0

9 years ago

1.0.2

9 years ago

1.0.0

9 years ago