distribucache-console-logger

1.3.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.3.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.3.0
    0
  • 1.1.0
    0
  • 1.0.2
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i distribucache-console-logger

Weekly Downloads

0

Version

1.3.0

License

MIT

Last publish

Collaborators

  • ddrinf
  • nemtsov