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

Method set

cachecontrol/cache.py:43–47  ·  view source on GitHub ↗
(
        self, key: str, value: bytes, expires: int | datetime | None = None
    )

Source from the content-addressed store, hash-verified

41 return self.data.get(key, None)
42
43 def set(
44 self, key: str, value: bytes, expires: int | datetime | None = None
45 ) -> None:
46 with self.lock:
47 self.data.update({key: value})
48
49 def delete(self, key: str) -> None:
50 with self.lock:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected