Module cache

Module cache 

Source

Modules§

cache_macros

Structs§

AHashMap
A HashMap using RandomState to hash the items. (Requires the std feature to be enabled.)
Lazy
A value which is initialized on the first access.
Mutex
A mutual exclusion primitive useful for protecting shared data

Constants§

DEFAULT_CACHE_PAGE_SIZE

Functions§

get_or_set_from_cache
new_cache

Type Aliases§

LazyRUMCache
RUMCache
I don’t think most scenarios will need more than 10 items worth of memory pre-allocated at a time.