z_depcache (zotonic_core v1.0.0-rc.14)
Link to this section Summary
Functions
Flush all keys from the caches
Flush the key and all keys depending on the key
Flush all items memoized in the process dictionary.
Fetch the key from the cache, return the data or an undefined if not found (or not valid)
Fetch the key from the cache, return the data or an undefined if not found (or not valid)
Fetch the key from the cache, return the data or an undefined if not found (or not valid)
Fetch the key from the cache, when the key does not exist then lock the entry and let the calling process insert the value. All other processes requesting the key will wait till the key is updated and receive the key's new value.
Enable or disable the in-process caching using the process dictionary
Check if we use a local process dict cache
Add the key to the depcache, hold it for 3600 seconds and no dependencies
Add the key to the depcache, hold it for MaxAge seconds and no dependencies
Add the key to the depcache, hold it for MaxAge seconds and check the dependencies
Return the total memory size of all stored terms
Start depcache instance based on site configuration
Link to this section Functions
Link to this function
flush(Context)
Link to this function
flush(Key, Context)
Link to this function
flush_process_dict()
Link to this function
get(Key, Context)
Link to this function
get(Key, SubKey, Context)
Link to this function
get_subkey(Key, SubKey, Context)
Link to this function
get_wait(Key, Context)
Link to this function
in_process(Flag)
Link to this function
in_process_server(Server)
Link to this function
memo(Function, Context)
Link to this function
memo(Function, MaxAge, Context)
Link to this function
memo(F, Key, MaxAge, Context)
Link to this function
memo(F, Key, MaxAge, Dep, Context)
Link to this function
record_depcache_event(Event, Host)
Link to this function
set(Key, Data, Context)
Link to this function
set(Key, Data, MaxAge, Context)
Link to this function
set(Key, Data, MaxAge, Depend, Context)
Link to this function
size(Context)
Link to this function