add doc string to explain what delete cache does

This commit is contained in:
Ishaan Jaff 2024-07-13 12:25:31 -07:00
parent 670bf1b98d
commit 677db38f8b

View file

@ -1668,6 +1668,9 @@ class DualCache(BaseCache):
self.redis_cache.flush_cache()
def delete_cache(self, key):
"""
Delete a key from the cache
"""
if self.in_memory_cache is not None:
self.in_memory_cache.delete_cache(key)
if self.redis_cache is not None: