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.
508 B · 20 lines
TypeScript
at main
123456789101112131415161718192021/** * 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, accessStats: storage.getAccessStatsBufferStats(), inMemory: cache.getStats(), }}