#include <tcache.h>
Data Fields | |
| int(* | compare_key_entry )(void *key, struct qhash_head *link) |
| int(* | hash_key )(void *key, int table_size) |
| int(* | free_payload )(void *payload) |
| unsigned int | timeout_msecs |
| unsigned int | expiration_enabled |
| unsigned int | num_entries |
| unsigned int | hard_limit |
| unsigned int | soft_limit |
| unsigned int | reclaim_percentage |
| enum PINT_tcache_replace_algorithms | replacement_algorithm |
| unsigned int | enable |
| qhash_table * | h_table |
| qlist_head | lru_list |
|
|
comparison function
|
|
|
is the cache enabled?
|
|
|
do cache entries expire?
|
|
|
function that can be used to free payload pointer
|
|
|
hash table
|
|
|
hard limit on number of entries
|
|
|
hash function
|
|
|
lru list
|
|
|
current number of entries in tcache
|
|
|
what percentage to reclaim at soft limit
|
|
|
what algorithm to use to find entry to replace
|
|
|
soft limit on number of entries
|
|
|
timeout to use with each entry
|
1.3.5