cowboy_session_storage behaviour (cowboy_session v2.0.0)

Summary

Callbacks

-callback delete(SID) -> ok when SID :: bitstring().
-callback get(SID, Key, Default) -> term() when SID :: bitstring(), Key :: term(), Default :: term().
-callback new(SID) -> ok when SID :: bitstring().
-callback set(SID, Key, Value) -> ok when SID :: bitstring(), Key :: term(), Value :: term().
-callback start_link() -> {ok, pid()} | ignore | {error, error()}.
-callback stop(New_storage) -> ok when New_storage :: pid().