memoi

v0.0.2
Memoize with any storages
memoize storage cache

Memoi Build Status

Memoize with any storages.

Installation

npm install memoi

Features

  • Adopt KVS(ex. memcached, redis), and use same API with memoize.

comming soon.

Example

var memoi = require('memoi');

var fibonacci = memoi.ze(function(n) {
  return n < 2 ? n: fibonacci(n - 1) + fibonacci(n - 2);
});

fibonacci(10); // 55

License

The MIT License (MIT) Copyright (c) 2014 Masaaki Morishita

npm i memoi

Metadata

  • MIT
  • Whatever
  • Masaaki Morishita
  • released 5/2/2014

Downloads

Maintainers