a zip code crypto-currency system good for red ONLY
Eric Foster d5378345de connection between front end and database преди 6 години
..
test connection between front end and database преди 6 години
.jshintrc connection between front end and database преди 6 години
.npmignore connection between front end and database преди 6 години
.testem.json connection between front end and database преди 6 години
.travis.yml connection between front end and database преди 6 години
LICENCE connection between front end and database преди 6 години
README.md connection between front end and database преди 6 години
index.js connection between front end and database преди 6 години
package.json connection between front end and database преди 6 години

README.md

continuable-cache

Cache a continuable

Example

var cache = require("continuable-cache")
var fs = require("fs")

var readFile = function (uri) { return function (cb) {
    fs.readFile(uri, cb)
} }

var continuableFile = readFile("./package.json")

var cached = cache(continuableFile)

// will only do one file read operation
cached(function (err, file) {
    /* calls out to fs.readFile */
})

cached(function (err, file) {
    /* get's either err or file from cache in cached */
})

Installation

npm install continuable-cache

Contributors

  • Raynos

MIT Licenced