MCPcopy Index your code
hub / github.com/nodejs/node / copy_cache

Function copy_cache

tools/inspector_protocol/jinja2/environment.py:69–75  ·  view source on GitHub ↗

Create an empty copy of the given cache.

(cache)

Source from the content-addressed store, hash-verified

67
68
69def copy_cache(cache):
70 """Create an empty copy of the given cache."""
71 if cache is None:
72 return None
73 elif type(cache) is dict:
74 return {}
75 return LRUCache(cache.capacity)
76
77
78def load_extensions(environment, extensions):

Callers 1

overlayMethod · 0.70

Calls 2

LRUCacheClass · 0.90
typeFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…