Catalyst-Plugin-Session-Store-Redis
view release on metacpan or search on metacpan
MyApp->config->{Plugin::Session} = {
expires => 3600,
redis_server => '127.0.0.1:6379',
redis_debug => 0, # or 1!
redis_reconnect => 0, # or 1
redis_db => 5, # or 0 by default
redis_ssl => 1, # or 0
redis_name => 'name',
redis_username => 'username', # or default user
redis_password => 'password',
redis_ssl_verify_mode => SSL_VERIFY_PEER, # IO::Socket::SSL
};
# ... in an action:
$c->session->{foo} = 'bar'; # will be saved
# DESCRIPTION
`Catalyst::Plugin::Session::Store::Redis` is a session storage plugin for
Catalyst that uses the Redis ([http://redis.io/](http://redis.io/)) key-value
database.
Boolean flag. Default: 0, i.e. off.
Use this setting for reconnect with authentication.
### redis\_ssl
Boolean flag. Default: 0, i.e. off.
You can connect to Redis over SSL/TLS by setting this flag if the
target Redis server or cluster has been setup to support SSL/TLS.
This requires [IO::Socket::SSL](https://metacpan.org/pod/IO%3A%3ASocket%3A%3ASSL) to be installed on the client. It's off by default.
### redis\_ssl\_verify\_mode
This parameter will be applied when `redis_ssl` flag is set. It sets
the verification mode for the peer certificate. It's compatible with
the parameter with the same name in [IO::Socket::SSL](https://metacpan.org/pod/IO%3A%3ASocket%3A%3ASSL).
### redis\_name
Setting a different name for the connection.
### redis\_username
The username for the authentication
### redis\_password
lib/Catalyst/Plugin/Session/Store/Redis.pm view on Meta::CPAN
MyApp->config->{Plugin::Session} = {
expires => 3600,
redis_server => '127.0.0.1:6379',
redis_debug => 0, # or 1!
redis_reconnect => 0, # or 1
redis_db => 5, # or 0 by default
redis_ssl => 1, # or 0
redis_name => 'name',
redis_username => 'username', # or default user
redis_password => 'password',
redis_ssl_verify_mode => SSL_VERIFY_PEER, # IO::Socket::SSL
};
# ... in an action:
$c->session->{foo} = 'bar'; # will be saved
=head1 DESCRIPTION
C<Catalyst::Plugin::Session::Store::Redis> is a session storage plugin for
Catalyst that uses the Redis (L<http://redis.io/>) key-value
database.
lib/Catalyst/Plugin/Session/Store/Redis.pm view on Meta::CPAN
Boolean flag. Default: 0, i.e. off.
Use this setting for reconnect with authentication.
=head3 redis_ssl
Boolean flag. Default: 0, i.e. off.
You can connect to Redis over SSL/TLS by setting this flag if the
target Redis server or cluster has been setup to support SSL/TLS.
This requires L<IO::Socket::SSL> to be installed on the client. It's off by default.
=head3 redis_ssl_verify_mode
This parameter will be applied when C<redis_ssl> flag is set. It sets
the verification mode for the peer certificate. It's compatible with
the parameter with the same name in L<IO::Socket::SSL>.
=head3 redis_name
Setting a different name for the connection.
=head3 redis_username
The username for the authentication
=head3 redis_password
( run in 0.480 second using v1.01-cache-2.11-cpan-4d50c553e7e )