birbnest v0.1.1 Birbnest.Nest

This is an Agent implementation of Plug.Session.Store.

Summary

Functions

Remove the given session id from store

Get session data from the agent for the given session id

Initialized the store with the default options. These options are also given to get, put, and delete by default too

Put session data into the agent for the given session id. If nil is given for the session id, create a new session

Start the Agent with empty map and module name as reference id

Functions

delete(conn, sid, opts)

Remove the given session id from store.

get(conn, sid, opts)

Get session data from the agent for the given session id.

init(opts \\ [])

Initialized the store with the default options. These options are also given to get, put, and delete by default too.

put(conn, sid, value, opts)

Put session data into the agent for the given session id. If nil is given for the session id, create a new session.

start_link()

Start the Agent with empty map and module name as reference id.