Std.App.IsrCache
11 public declarations
- CacheEntry
One cached rendered response.
- CacheLookup
The result of an ISR cache lookup.
- CacheState
Internal state tracked within the synchronized cell.
- create
Int -> Std.App.IsrCache.IsrCacheCreates a new thread-safe ISR cache with bounded capacity.
- get
&Std.App.IsrCache.IsrCache -> Str -> Int -> Std.App.IsrCache.CacheLookupLooks up an entry by key, returning Fresh, Stale, or Miss.
- IsrCache
A thread-safe, zero-copy Incremental Static Regeneration cache.
- purgeKey
&Std.App.IsrCache.IsrCache -> Str -> BoolEvicts an entry by key.
- purgeTag
&Std.App.IsrCache.IsrCache -> Str -> IntEvicts all entries bearing the specified tag immediately from cache.
- put
&Std.App.IsrCache.IsrCache -> Str -> &Bytes -> Str -> &Array[Str] -> Int -> Int -> Int -> ()Stores or replaces an entry with lifetime and stale-while-revalidate duration.
- revalidateTag
&Std.App.IsrCache.IsrCache -> Str -> Int -> IntMarks all entries with the matching tag as stale (expired).
- stats
&Std.App.IsrCache.IsrCache -> (Int, Int, Int, Int)Returns (currentEntries, freshHits, staleHits, misses).
