0.0.1 • Published 10 years ago

chrash v0.0.1

Weekly downloads
3
License
BSD
Repository
github
Last release
10 years ago

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);