|
libaaruformat 1.0
Aaru Data Preservation Suite - Format Library
|
Single hash entry in the in-memory cache. More...
#include <aaruformat/lru.h>
Data Fields | |
| uint64_t | key |
| 64-bit integer key (unique within the cache). | |
| void * | value |
| Opaque value pointer associated with key. | |
| UT_hash_handle | hh |
| uthash handle (must remain per uthash docs). | |
Single hash entry in the in-memory cache.
This structure is managed by uthash and represents one key/value association tracked by the cache. Keys are native 64-bit integers, hashed directly by uthash without string conversion. Callers do not allocate or free individual entries directly; use the cache API helpers.
Lifetime & ownership:
| UT_hash_handle CacheEntry::hh |
uthash handle (must remain per uthash docs).
Definition at line 27 of file lru.h.
Referenced by add_to_cache_uint64(), find_in_cache_uint64(), and free_cache().
| uint64_t CacheEntry::key |
64-bit integer key (unique within the cache).
Definition at line 25 of file lru.h.
Referenced by add_to_cache_uint64(), and find_in_cache_uint64().
| void* CacheEntry::value |
Opaque value pointer associated with key.
Definition at line 26 of file lru.h.
Referenced by add_to_cache_uint64(), find_in_cache_uint64(), and free_cache().