Copyright © 2009-2010 Marc Worrell, 2014 Arjan Scherpenisse
Authors: Marc Worrell (marc@worrell.nl).
flush/1 | Flush all keys from the caches. |
flush/2 | Flush the key and all keys depending on the key. |
flush_process_dict/0 | Flush all items memoized in the process dictionary. |
get/2 | Fetch the key from the cache, return the data or an undefined if not found (or not valid). |
get/3 | Fetch the key from the cache, return the data or an undefined if not found (or not valid). |
get_subkey/3 | Fetch the key from the cache, return the data or an undefined if not found (or not valid). |
get_wait/2 | Fetch the key from the cache, when the key does not exist then lock the entry and let the calling process insert the value. |
in_process/1 | Enable or disable the in-process caching using the process dictionary. |
in_process_server/1 | Check if we use a local process dict cache. |
memo/2 | |
memo/3 | |
memo/4 | |
memo/5 | |
record_depcache_event/2 | |
set/3 | Add the key to the depcache, hold it for 3600 seconds and no dependencies. |
set/4 | Add the key to the depcache, hold it for MaxAge seconds and no dependencies. |
set/5 | Add the key to the depcache, hold it for MaxAge seconds and check the dependencies. |
size/1 | Return the total memory size of all stored terms. |
start_link/1 | Start depcache instance based on site configuration. |
flush(Context::#context{}) -> void()
Flush all keys from the caches
flush(Key, Context::#context{}) -> void()
Flush the key and all keys depending on the key
flush_process_dict() -> any()
Flush all items memoized in the process dictionary.
get(Key, Context) -> {ok, Data} | undefined
Fetch the key from the cache, return the data or an undefined if not found (or not valid)
get(Key, SubKey, Context) -> {ok, Data} | undefined
Fetch the key from the cache, return the data or an undefined if not found (or not valid)
get_subkey(Key, SubKey, Context) -> {ok, Data} | undefined
Fetch the key from the cache, return the data or an undefined if not found (or not valid)
get_wait(Key, Context) -> {ok, Data} | undefined
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.
in_process(Flag) -> any()
Enable or disable the in-process caching using the process dictionary
in_process_server(Server) -> any()
Check if we use a local process dict cache
memo(Function, Context) -> any()
memo(Function, MaxAge, Context) -> any()
memo(F, Key, MaxAge, Context) -> any()
memo(F, Key, MaxAge, Dep, Context) -> any()
record_depcache_event(Event, Host) -> any()
set(Key, Data, Context) -> void()
Add the key to the depcache, hold it for 3600 seconds and no dependencies
set(Key, Data, MaxAge, Context) -> void()
Add the key to the depcache, hold it for MaxAge seconds and no dependencies
set(Key, Data, MaxAge, Depend, Context) -> void()
Add the key to the depcache, hold it for MaxAge seconds and check the dependencies
size(Context::#context{}) -> int()
Return the total memory size of all stored terms
start_link(SiteProps) -> any()
Start depcache instance based on site configuration
Generated by EDoc