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

Class BaseCache

cachecontrol/cache.py:19–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18
19class BaseCache:
20 def get(self, key: str) -> bytes | None:
21 raise NotImplementedError()
22
23 def set(
24 self, key: str, value: bytes, expires: int | datetime | None = None
25 ) -> None:
26 raise NotImplementedError()
27
28 def delete(self, key: str) -> None:
29 raise NotImplementedError()
30
31 def close(self) -> None:
32 pass
33
34
35class DictCache(BaseCache):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…