simpleCleanup()
Updated 22 Oct 2026
simpleCleanup(maxAgeMinutes, namespace): Promise<void>
Defined in: cache.ts:349
Deletes stale cache entries from IndexedDB based on age and namespace.
- Only entries with matching
namespaceare considered - Entries older than
maxAgeMinutes(based onlast-accessedfield) are deleted
Requirements for each entry:
namespace: stringset increatePersistentCachelast-accessed: numberis automatically set bywriteToCache
Parameters
maxAgeMinutes
number
Age threshold in minutes; entries older than this will be removed
namespace
string
Namespace tag to limit cleanup scope
Returns
Promise<void>