Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/psf/cachecontrol
/ set_body
Method
set_body
cachecontrol/caches/file_cache.py:130–132 ·
view source on GitHub ↗
(self, key: str, body: bytes)
Source
from the content-addressed store, hash-verified
128
return
None
129
130
def
set_body(self, key: str, body: bytes) -> None:
131
name = self._fn(key) +
".body"
132
self._write(name, body)
133
134
def
delete(self, key: str) -> None:
135
self._delete(key,
""
)
Callers
nothing calls this directly
Calls
2
_fn
Method · 0.80
_write
Method · 0.80
Tested by
no test coverage detected