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

Method set

fastapi_cache/backends/memcached.py:18–19  ·  view source on GitHub ↗
(self, key: str, value: bytes, expire: Optional[int] = None)

Source from the content-addressed store, hash-verified

16 return await self.mcache.get(key.encode())
17
18 async def set(self, key: str, value: bytes, expire: Optional[int] = None) -> None:
19 await self.mcache.set(key.encode(), value, exptime=expire or 0)
20
21 async def clear(self, namespace: Optional[str] = None, key: Optional[str] = None) -> int:
22 raise NotImplementedError

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected