clj_cache
Generic cache module.
Implements the gen_server behaviour and on initialization creates
an in-memory ETS table where to keep the cached values.
Summary
Functions
-
get(Key)
Gets the value for
Keyorundefinedif not found. -
put(Key, Value)
Adds or updates the
ValueforKey.
Functions
get(Key)
-spec get(any()) -> undefined | {ok, any()}.
Gets the value for Key or undefined if not found.
put(Key, Value)
-spec put(any(), any()) -> ok.
Adds or updates the Value for Key.