void add_to_cache_uint64(struct CacheHeader *cache, const uint64_t key, void *value)
Adds a value to the cache with a uint64_t key, using string conversion.
void add_to_cache(struct CacheHeader *cache, const char *key, void *value)
Adds a value to the cache with a string key, pruning if necessary.
void * find_in_cache_uint64(struct CacheHeader *cache, const uint64_t key)
Finds a value in the cache by uint64_t key, using string conversion.
Single hash entry in the in-memory cache.
void * value
Opaque value pointer associated with key (not freed automatically on eviction/clear).
UT_hash_handle hh
uthash handle linking this entry into the hash table (must remain last or per uthash docs).
char * key
Null-terminated key string (unique within the cache). May encode numeric keys.