Module memory_cache

Module memory_cache 

Source

Functionsยง

clean_expired
Clear expired items from the cache
clear
Clear all items from the cache
exists
Check if a key exists in the in-memory cache
get
Retrieve content from the in-memory cache
get_if_valid
Retrieve content from the in-memory cache if it exists and is not expired
is_valid
Check if a key exists in the in-memory cache and is not expired
remove
Remove an item from the cache
size
Get the number of items in the cache
store
Store content in the in-memory cache