MCPcopy
hub / github.com/long2ice/fastapi-cache / get_with_ttl

Method get_with_ttl

fastapi_cache/backends/memcached.py:12–13  ·  view source on GitHub ↗
(self, key: str)

Source from the content-addressed store, hash-verified

10 self.mcache = mcache
11
12 async def get_with_ttl(self, key: str) -> Tuple[int, Optional[bytes]]:
13 return 3600, await self.get(key)
14
15 async def get(self, key: str) -> Optional[bytes]:
16 return await self.mcache.get(key.encode())

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected