Copyright © 2009 Marc Worrell Date: 2009-11-05
Authors: Marc Worrell (marc@worrell.nl).
delete/1 | |
disable/0 | Disable memoization for this process, also cleans up the possible depcache memoization. |
enable/0 | Enable memoization for this process. |
get/1 | Check if the key is stored. |
get/2 | |
is_enabled/1 | Check if memoization is enabled for the current user/process. |
set/2 | Store a key if memoization is set. |
set/3 | |
set_userid/1 | Set the user id for which we memo values. |
delete(Key) -> any()
disable() -> any()
Disable memoization for this process, also cleans up the possible depcache memoization.
enable() -> any()
Enable memoization for this process. You need to call set_userid/1 before memoization is effective.
get(Key) -> any()
Check if the key is stored.
get(Key, Context) -> any()
is_enabled(Context) -> any()
Check if memoization is enabled for the current user/process. Disabled when in a sudo action.
set(Key, Value) -> any()
Store a key if memoization is set.
set(Key, Value, Context) -> any()
set_userid(AuthUserId) -> any()
Set the user id for which we memo values. Called by z_auth on session initialization.
Generated by EDoc