Optionaloptions: DecompressedChunkCacheOptionsPrivate Static ReadonlyDEFAULT_Default cache size derived from config.cache.l0MaxSizeMB
Private Static ReadonlyMETADATA_Metadata overhead estimate per chunk (shape array, stride array, object wrapper)
PrivatecachePrivatedebugPrivate ReadonlymaxResolved byte budget — surfaced in getStats() for runtime introspection.
Get a cached decompressed chunk.
Cache key (use makeKey() to generate)
Cached chunk or undefined if not found
Cache a decompressed chunk.
Cache key (use makeKey() to generate)
Decompressed chunk to cache
Check if a chunk is cached.
Cache key to check
true if chunk is in cache
Clear all cached chunks.
Dispose the cache, releasing all cached chunks.
Get cache statistics for monitoring.
Cache statistics including size, count, hits, misses, and hit rate
StaticmakeGenerate a cache key from array path and chunk coordinates.
Full path to the zarr array (e.g., "/points/positions")
Chunk coordinates (e.g., [0, 1, 2])
Cache key string
StaticparseParse a cache key back into array path and chunk coordinates.
Cache key to parse
Parsed components or null if invalid key format
L0 Decompressed Chunk Cache.
Uses LRU eviction with byte-size tracking to cache decompressed zarr chunks. Key format:
${arrayPath}:${chunkCoords.join(',')}(e.g., "/points/positions:0,1,2")Example