(feat) /cache/flushall

This commit is contained in:
Ishaan Jaff 2024-03-26 09:18:58 -07:00
parent 151b717ae2
commit b8af946fb9
2 changed files with 13 additions and 3 deletions

View file

@ -334,6 +334,9 @@ class RedisCache(BaseCache):
def flush_cache(self):
self.redis_client.flushall()
def flushall(self):
self.redis_client.flushall()
async def disconnect(self):
await self.async_redis_conn_pool.disconnect(inuse_connections=True)