Something went wrong. Try again.
Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol.
Something went wrong. Try again.
456 B · 19 lines
TypeScript
1234567891011121314151617181920/** * Cache statistics for wisp-hosting-service * * With tiered storage, most caching is handled transparently. * In-memory caches are managed by the centralized CacheManager. */
import { cache } from './cache-manager'import { storage } from './storage'
// Get overall cache statisticsexport async function getCacheStats() { const tieredStats = await storage.getStats()
return { tieredStorage: tieredStats, inMemory: cache.getStats(), }}