cache-reduce

Caching for reducible data structures

cache-reduce

Caching for reducible data structures. It can be used to cache reducible data structures that represents expensive computation to make subsequent reads cheap & fast. Note that cache won't pre-cache reducible value, it's lazy and will start caching only on first attempt to read from it. For pre-buffering you may use buffer-reduce instead.

npm install cache-reduce