DriveLoader Logo
DriveLoaderv1.2.0
Docs/In-Memory Caching & Metrics

In-Memory Caching & Metrics

LRU capacity eviction and TTL expiration with real-time statistics.

caching.tsx
1import { getCacheStats, clearCache } from '@driveloader/react';
2
3const stats = getCacheStats();
4console.log(stats.hitRate, stats.cacheHits);
5clearCache();

Usage Notes

Default TTL is 1 hour per resolved CDN URL.