Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matype/memoi
Memoize with any storages
https://github.com/matype/memoi
Last synced: 6 days ago
JSON representation
Memoize with any storages
- Host: GitHub
- URL: https://github.com/matype/memoi
- Owner: matype
- Created: 2014-04-25T07:24:22.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-02T10:43:33.000Z (over 10 years ago)
- Last Synced: 2024-10-12T00:36:01.267Z (about 1 month ago)
- Language: JavaScript
- Size: 212 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.markdown
Awesome Lists containing this project
README
# Memoi [![Build Status](https://travis-ci.org/morishitter/memoi.svg)](https://travis-ci.org/morishitter/memoi)
Memoize with any storages.
## Installation
```
npm install memoi
```## Features
- Adopt KVS(ex. memcached, redis), and use same API with memoize.
comming soon.
## Example
```javascript
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