cowboy_session_storage behaviour (cowboy_session v2.0.0)
Summary
Callbacks
Link to this callback
delete/1
-callback delete(SID) -> ok when SID :: bitstring().
Link to this callback
get/3
-callback get(SID, Key, Default) -> term() when SID :: bitstring(), Key :: term(), Default :: term().
Link to this callback
new/1
-callback new(SID) -> ok when SID :: bitstring().
Link to this callback
set/3
-callback set(SID, Key, Value) -> ok when SID :: bitstring(), Key :: term(), Value :: term().
Link to this callback
start_link/0
-callback start_link() -> {ok, pid()} | ignore | {error, error()}.
Link to this callback
stop/1
-callback stop(New_storage) -> ok when New_storage :: pid().