Lines Matching full:cache
8 * provided, it determines the cache key for storing the result based on the
10 * provided to the memoized function is used as the map cache key. The `func`
13 * **Note:** The cache is exposed as the `cache` property on the memoized
14 * function. Its creation may be customized by replacing the `_.memoize.Cache`
24 * @param {Function} [resolver] The function to resolve the cache key.
42 * // Modify the result cache.
43 * values.cache.set(object, ['a', 'b']);
47 * // Replace `_.memoize.Cache`.
48 * _.memoize.Cache = WeakMap;
57 cache = memoized.cache;
59 if (cache.has(key)) {
60 return cache.get(key);
63 memoized.cache = cache.set(key, result) || cache;
66 memoized.cache = new (memoize.Cache || MapCache);
71 memoize.Cache = MapCache;