Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/psf/cachecontrol
/ get
Method
get
cachecontrol/cache.py:40–41 ·
view source on GitHub ↗
(self, key: str)
Source
from the content-addressed store, hash-verified
38
self.data = init_dict or {}
39
40
def
get(self, key: str) -> bytes | None:
41
return
self.data.get(key, None)
42
43
def
set(
44
self, key: str, value: bytes, expires: int | datetime | None = None
Callers
nothing calls this directly
Calls
1
get
Method · 0.45
Tested by
no test coverage detected