pyboxbuilder.packing.cache¶
Two-level layout cache — in-memory LRU + user cache JSON with SHA-256 hash keys.
Functions
Generate a SHA-256 hash cache key from serialized input. |
|
Get a cached value by key (checks memory first, then disk). |
|
Fast process-local lookup without disk I/O. |
|
Clear all caches (memory and disk). |
|
Load the disk cache into memory. |
|
Save the cache dictionary to disk (best-effort on read-only environments). |
|
Store a value in both memory and disk cache. |
|
Fast process-local store without disk I/O. |