node-transparentCache

transparentcache exposes one single function that can be used to cache the output of object members or the output of single function.
It follows the memoize pattern and accepts a configuration that specifies which parameters are acutally relevant for the reidentification of a cache member.

cachingStrategy specifies the strategy that is used to cache the method output, see "Strategies" below. (default: Plain)

methods a hash which keys are the names of the methods to cache, its values are pointing to the index of the parameters that are relevant for the cache name. e.g. {foo:[0]} specifies that the function foo should be cached and that only the first parameter should be considered for caching.