mirror of
https://github.com/long2ice/fastapi-cache.git
synced 2026-03-25 04:57:54 +00:00
add clear method
This commit is contained in:
@@ -17,3 +17,6 @@ class MemcacheBackend(Backend):
|
||||
|
||||
async def set(self, key: str, value: str, expire: int = None):
|
||||
return await self.mcache.set(key.encode(), value.encode(), exptime=expire)
|
||||
|
||||
async def clear(self, namespace: str = None, key: str = None):
|
||||
raise NotImplementedError
|
||||
|
||||
Reference in New Issue
Block a user