dist/lib/methodCache.js
function create(method, options = {}) {
    options = Object.assign(exports.defaults, options);
    exports.results.set(method, new lru_cache_1.default(options));
    return exports.results.get(method);
}
function create(method, options = {}) {
    options = Object.assign(exports.defaults, options);
    exports.results.set(method, new lru_cache_1.default(options));
    return exports.results.get(method);
}
function create ( method , options = { } ) { options = Object . assign ( exports . defaults , options ) ; exports . results . set ( method , new lru_cache_1 . default ( options ) ) ; return exports . results . get ( method ) ; }
Setup a cache for a method call.
@param method Method name, for index of cached results
@param options.max Maximum size of cache
@param options.maxAge Maximum age of cache
Setup a cache for a method call .