redbird v0.5.0 Plug.Session.REDIS View Source
Stores the session in a redis store.
Link to this section Summary
Functions
Removes the session associated with given session id from the store
Parses the given cookie
Initializes the store
Stores the session associated with given session id
Link to this section Functions
delete(conn, redis_key, init_options) View Source
Removes the session associated with given session id from the store.
Callback implementation for Plug.Session.Store.delete/3
.
get(conn, namespaced_key, init_options) View Source
Parses the given cookie.
Returns a session id and the session contents. The session id is any value that can be used to identify the session by the store.
The session id may be nil in case the cookie does not identify any value in the store. The session contents must be a map.
Callback implementation for Plug.Session.Store.get/3
.
init(opts) View Source
Initializes the store.
The options returned from this function will be given
to get/3
, put/4
and delete/3
.
Callback implementation for Plug.Session.Store.init/1
.
namespace() View Source
put(conn, namespaced_key, data, init_options) View Source
Stores the session associated with given session id.
If nil
is given as id, a new session id should be
generated and returned.
Callback implementation for Plug.Session.Store.put/4
.