npm.io
0.0.1 • Published 12 years ago

chrash

Licence
BSD
Version
0.0.1
Deps
0
Vulns
0
Weekly
0

node-chrash

Chronically-updated Hash

Usage

var Chrash = require('chrash');
var initOptions = {
  polling: 15000, // intervals between updates, in ms
  update: function (existingCache, afterUpdate) {
    var newCache.val = existingCache.val;
    var err = null;

    afterUpdate(err, newCache);
  }
};
var initCallback = function (err, chrashInstance) {
  console.log(chrashInstance.get('val'));
};

Chrash.init(initOptions, initCallback);

Keywords