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

Method __init__

cachecontrol/caches/redis_cache.py:17–18  ·  view source on GitHub ↗
(self, conn: Redis[bytes])

Source from the content-addressed store, hash-verified

15
16class RedisCache(BaseCache):
17 def __init__(self, conn: Redis[bytes]) -> None:
18 self.conn = conn
19
20 def get(self, key: str) -> bytes | None:
21 return self.conn.get(key)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected