Creates a new file system cache instance.
Cache configuration options including cacheDir
ProtectedbuildProtectedcreateReturns a copy of the current cache statistics.
Current cache performance statistics
ProtectedisProtectedChecks if a cache entry has expired based on its expiration timestamp.
The cache entry to check
True if the entry has expired
ProtectedlogProtectedupdateProtectedUpdates cache statistics for performance monitoring.
The type of operation that occurred
Optionalcontext: { Additional context for hit/miss logging
OptionalfullOptionalkey?: stringOptionalreason?: string
File system cache implementation that stores cache entries as JSON files. Each cache entry is stored as a separate file in the specified directory.
Example