MCPcopy Create free account
hub / github.com/VJBots/VJ-File-Store / clean_cache

Method clean_cache

TechVJ/utils/custom_dl.py:229–236  ·  view source on GitHub ↗

function to clean the cache to reduce memory usage

(self)

Source from the content-addressed store, hash-verified

227
228
229 async def clean_cache(self) -> None:
230 """
231 function to clean the cache to reduce memory usage
232 """
233 while True:
234 await asyncio.sleep(self.clean_timer)
235 self.cached_file_ids.clear()
236 logging.debug("Cleaned the cache")

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected