a-cachify
Easily add a cache layer to any function.
Installation
npm install a-cachify
Usages
const cachify join = ;const Cache = ;const cache = ; let { result = ; return result;} // Add a cache layerdoSomething = ; ;; // return the cached result
API
cachify (cache, fn [ , keyMaker ] [ , thisArg ])
add a cache layer to the function.
apply (cache)
wrap (cache)
join
joinN
License
Copyright (c) 2019 dailyrandomphoto. Licensed under the MIT license.