|
libaaruformat 1.0
Aaru Data Preservation Suite - Format Library
|
Cache top-level descriptor encapsulating the hash table root and capacity limit. More...
#include <aaruformat/lru.h>
Data Fields | |
| uint64_t | max_items |
| Hard limit for number of entries (policy: enforce/ignore depends on implementation). | |
| struct CacheEntry * | cache |
| Hash root (uthash). NULL when empty. | |
Cache top-level descriptor encapsulating the hash table root and capacity limit.
The cache enforces an upper bound (max_items) on the number of tracked entries. Insert helpers are expected to evict (or refuse) when the limit is exceeded (strategy defined in implementation; current behavior may be simple non-evicting if not yet implemented as a true LRU). The cache pointer holds the uthash root (NULL when empty).
Fields:
| struct CacheEntry* CacheHeader::cache |
Hash root (uthash). NULL when empty.
Definition at line 48 of file lru.h.
Referenced by aaruf_create(), aaruf_open(), add_to_cache(), and find_in_cache().
| uint64_t CacheHeader::max_items |
Hard limit for number of entries (policy: enforce/ignore depends on implementation).
Definition at line 47 of file lru.h.
Referenced by aaruf_create(), aaruf_open(), and add_to_cache().