MCPcopy Create free account
hub / github.com/TechifyBots/File-Stream-Bot / clean_cache

Method clean_cache

biisal/utils/custom_dl.py:224–231  ·  view source on GitHub ↗

function to clean the cache to reduce memory usage

(self)

Source from the content-addressed store, hash-verified

222
223
224 async def clean_cache(self) -> None:
225 """
226 function to clean the cache to reduce memory usage
227 """
228 while True:
229 await asyncio.sleep(self.clean_timer)
230 self.cached_file_ids.clear()
231 logging.debug("Cleaned the cache")

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected