0.1.1 • Published 12 years ago

cached-operation v0.1.1

Weekly downloads
8
License
-
Repository
github
Last release
12 years ago

cached-operation Build Status

Cache an asynchronous operation

Example

var CachedOperation = require("cached-operation")

var operation = CachedOperation(function (key, cb) {
    cb({})
})

operation("foo", function (foo) {
    operation("foo", function (foo2) {
        operation("bar", function (bar) {
            console.log(foo === foo2)
            console.log(foo !== bar)
        })
    })
})

Installation

npm install cached-operation

Contributors

  • Raynos

MIT Licenced

0.1.1

12 years ago

0.1.0

12 years ago