Tor
0.4.7.0-alpha-dev
|
Data Fields | |
storage_dir_t * | dir |
smartlist_t * | entries |
unsigned | max_entries |
A consensus_cache_t holds a directory full of labeled items.
Definition at line 62 of file conscache.c.
storage_dir_t* dir |
Underling storage_dir_t to handle persistence
Definition at line 64 of file conscache.c.
Referenced by consensus_cache_add(), consensus_cache_entry_map(), consensus_cache_register_with_sandbox(), and consensus_cache_rescan().
smartlist_t* entries |
List of all the entries in the directory.
Definition at line 66 of file conscache.c.
Referenced by consensus_cache_clear(), consensus_cache_delete_pending(), consensus_cache_find_all(), consensus_cache_free_(), consensus_cache_rescan(), and consensus_cache_unmap_lazy().
unsigned max_entries |
The maximum number of entries that we'd like to allow in this cache. This is the same as the storagedir limit when MUST_UNMAP_TO_UNLINK is not defined.
Definition at line 71 of file conscache.c.
Referenced by consensus_cache_get_n_filenames_available().