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

Function create_cache

tools/inspector_protocol/jinja2/environment.py:60–66  ·  view source on GitHub ↗

Return the cache class for the given size.

(size)

Source from the content-addressed store, hash-verified

58
59
60def create_cache(size):
61 """Return the cache class for the given size."""
62 if size == 0:
63 return None
64 if size < 0:
65 return {}
66 return LRUCache(size)
67
68
69def copy_cache(cache):

Callers 2

__init__Method · 0.70
overlayMethod · 0.70

Calls 1

LRUCacheClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…