Local storage cache strategy with enhanced error handling
This cache strategy uses browser localStorage when available, with graceful fallback when running in Node.js or when localStorage is unavailable or restricted.
Create a new local storage cache
Prefix for cache keys
Clear all cache entries with this prefix, with error handling
Get a value from the cache with enhanced error handling
Cache key
Cached value or null if not found, expired, or on error
Invalidate a cache entry with error handling
Set a value in the cache with resilience features
Value to cache
Optional
Time to live in milliseconds (optional)
Generated using TypeDoc
Local storage cache strategy with enhanced error handling
This cache strategy uses browser localStorage when available, with graceful fallback when running in Node.js or when localStorage is unavailable or restricted.