Skip to Content
⚠️Active Development Notice: TimeTiles is under active development. Information may be placeholder content or not up-to-date.

web


web / lib/services/cache/manager

lib/services/cache/manager

Cache manager for tracking and managing cache instances.

Provides global operations (cleanup, stats, destroy) across all registered cache instances. Individual caches register themselves via their own constructors; the manager does not create caches.

Classes

CacheManager

Cache manager for tracking and managing cache instances.

Constructors

Constructor

new CacheManager(): CacheManager

Returns

CacheManager

Methods

clearAll()

static clearAll(): Promise<void>

Clear all cache instances

Returns

Promise<void>

getAllStats()

static getAllStats(): Promise<Record<string, CacheStats>>

Get stats for all caches

Returns

Promise<Record<string, CacheStats>>

cleanupAll()

static cleanupAll(): Promise<number>

Cleanup all cache instances

Returns

Promise<number>

destroyAll()

static destroyAll(): void

Destroy all cache instances

Returns

void

getInstance()

static getInstance(name): Cache | undefined

Get a specific cache instance if it exists

Parameters
name

string

Returns

Cache | undefined

hasInstance()

static hasInstance(name): boolean

Check if a cache instance exists

Parameters
name

string

Returns

boolean

Last updated on