Plug.Session.ETS

Stores the session in an in-memory ETS table.

A created ETS table is required for this store to work.

This store does not create the ETS table, it is expected that an existing named table is given as argument with public properties.

Options

Examples

# Create table during application start
:ets.new(:session, [:named_table, :public, read_concurrency: true])

# Use the session plug with the table name
plug Plug.Session, store: :ets, key: "sid", table: :session

http://www.erlang.org/doc/man/ets.html

Summary

delete(conn, sid, table)

Callback implementation of Plug.Session.Store.delete/3

get(conn, sid, table)

Callback implementation of Plug.Session.Store.get/3

init(opts)

Callback implementation of Plug.Session.Store.init/1

put(conn, sid, data, table)

Callback implementation of Plug.Session.Store.put/4

Functions

delete(conn, sid, table)

Callback implementation of Plug.Session.Store.delete/3.

get(conn, sid, table)

Callback implementation of Plug.Session.Store.get/3.

init(opts)

Callback implementation of Plug.Session.Store.init/1.

put(conn, sid, data, table)

Callback implementation of Plug.Session.Store.put/4.