chrash

0.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i chrash

Weekly Downloads

0

Version

0.0.1

License

BSD

Last publish

Collaborators

  • miloconway