You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.8 KiB
42 lines
1.8 KiB
Redis session backend
|
|
=====================
|
|
|
|
`Apache::Session::Browseable::Redis <https://metacpan.org/pod/Apache::Session::Browseable::Redis>`__
|
|
is the faster shareable session backend
|
|
|
|
Setup
|
|
-----
|
|
|
|
Install and launch a `Redis server <https://redis.io/>`__.
|
|
Install
|
|
`Apache::Session::Browseable::Redis <https://metacpan.org/pod/Apache::Session::Redis>`__
|
|
Perl module.
|
|
|
|
In the manager: set
|
|
`Apache::Session::Browseable::Redis <https://metacpan.org/pod/Apache::Session::Browseable::Redis>`__
|
|
in ``General parameters`` » ``Sessions`` » ``Session storage`` »
|
|
``Apache::Session module`` and add the connection parameters for your Redis server(s).
|
|
|
|
This backend uses the perl bindings for Redis database provided by the `Redis perl module <https://metacpan.org/pod/Redis>`__.
|
|
A complete list of supported constructor/connection options can be found in the `module documentation <https://metacpan.org/pod/Redis>`__.
|
|
|
|
E.g., Parameters (case sensitive):
|
|
|
|
============= =========================== ===============================================
|
|
Name Comment Example
|
|
============= =========================== ===============================================
|
|
**server** Redis server @ IP:PORT 127.0.0.1:6379
|
|
**sock** Redis server @ unix socket unix:/path/to/redis.sock
|
|
**sentinels** Redis sentinels list 127.0.0.1:26379,127.0.0.2:26379,127.0.0.3:26379
|
|
**password** password (== requirepass) ChangeMe
|
|
**select** Redis DB 1
|
|
**Index** Fields to index refer to :ref:`fieldstoindex`
|
|
============= =========================== ===============================================
|
|
|
|
Security
|
|
--------
|
|
|
|
Restrict network access to the redis server. For remote servers, you can
|
|
use :doc:`SOAP session backend<soapsessionbackend>` in cunjunction to
|
|
increase security for remote server that access through an unsecure
|
|
network
|
|
|