Dancer::Session::ElasticSearch - ElasticSearch based session engine for Dancer
This module implements a session engine storing session variables in an ElasticSearch index.
In config.yml
session: "ElasticSearch" session_index: "session" # defaults to "session"
This session engine will not automagically remove expired sessions on the server, but as it's ElasticSearch you know when sessions were last updated from the in-built timestamp on documents.
Creates a new session. Returns the session object.
Write the session to ES. Returns the session object.
Look for a session with the given id.
Returns the session object if found, undef if not.
undef
Remove the current session object from ES
Connect to ElasticSearch and returns a handle
Dancer, Dancer::Session, Plack::Session::Store::DBI
To install Dancer::Session::ElasticSearch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer::Session::ElasticSearch
CPAN shell
perl -MCPAN -e shell install Dancer::Session::ElasticSearch
For more information on module installation, please visit the detailed CPAN module installation guide.