mdast2docx logo Md2Docx
Version 0.1.0API DocsFunctions

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 namespace are considered
  • Entries older than maxAgeMinutes (based on last-accessed field) are deleted

Requirements for each entry:

  • namespace: string set in createPersistentCache
  • last-accessed: number is automatically set by writeToCache

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>

On this page