Copyright © (C) 2011-2015, Jim Rosenblum
Behaviours: gen_server.
Authors: Jim Rosenblum.
map_name() = any()
seconds() = non_neg_integer()
get_max_ttls/0 | Return [{Map, TTLSecs}]. |
set_max_ttl/2 | Create, change or delete the max TTL associated with a map. |
start_link/0 | Starts the server and links the caller to it. |
get_max_ttls() -> [{Map::map_name(), Secs::seconds()}]
Return [{Map, TTLSecs}].
set_max_ttl(Map::map_name(), Secs::seconds()) -> ok | {error, badarg}
Create, change or delete the max TTL associated with a map. 0 seconds will remove the max_ttl for the map alltogether. Existing values are overwritten.
start_link() -> {ok, pid()} | ignore | {error, any()}
Starts the server and links the caller to it.
Generated by EDoc, Sep 7 2016, 09:32:13.