MCPcopy Create free account
hub / github.com/psf/cachecontrol / __init__

Method __init__

cachecontrol/cache.py:36–38  ·  view source on GitHub ↗
(self, init_dict: MutableMapping[str, bytes] | None = None)

Source from the content-addressed store, hash-verified

34
35class DictCache(BaseCache):
36 def __init__(self, init_dict: MutableMapping[str, bytes] | None = None) -> None:
37 self.lock = Lock()
38 self.data = init_dict or {}
39
40 def get(self, key: str) -> bytes | None:
41 return self.data.get(key, None)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected