Debian Codegraph @

doc/sources/admin/redissessionbackend.rst

raw
1 Redis session backend
2 =====================
3
4 `Apache::Session::Browseable::Redis <https://metacpan.org/pod/Apache::Session::Browseable::Redis>`__
5 is the fastest shareable session backend
6
7 Setup
8 -----
9
10 Install and launch a `Redis server <https://redis.io/>`__.
11 Install
12 `Apache::Session::Browseable::Redis <https://metacpan.org/pod/Apache::Session::Browseable::Redis>`__
13 Perl module.
14
15 With Sentinel, make sure you are using at least version 1.3.8 of ``Apache::Session::Browseable``, this might require installing it from Debian Backports or CPAN.
16
17 In the manager: set
18 `Apache::Session::Browseable::Redis <https://metacpan.org/pod/Apache::Session::Browseable::Redis>`__
19 in ``General parameters`` » ``Sessions`` » ``Session storage`` »
20 ``Apache::Session module`` and add the connection parameters for your Redis server(s).
21
22 This backend uses the perl bindings for Redis database provided by the `Redis perl module <https://metacpan.org/pod/Redis>`__.
23 A complete list of supported constructor/connection options can be found in the `module documentation <https://metacpan.org/pod/Redis>`__.
24
25 E.g., Parameters (case sensitive):
26
27 ============= =========================== ===============================================
28 Name Comment Example
29 ============= =========================== ===============================================
30 **server** Redis server @ IP:PORT 127.0.0.1:6379
31 **sock** Redis server @ unix socket unix:/path/to/redis.sock
32 **sentinels** Redis sentinels list 127.0.0.1:26379,127.0.0.2:26379,127.0.0.3:26379
33 **service** Sentinel service name mymaster
34 **password** password (== requirepass) ChangeMe
35 **database** Redis DB 1
36 **Index** Fields to index refer to :ref:`fieldstoindex`
37 ============= =========================== ===============================================
38
39 ============================== ===================== =======
40 Additional sentinel parameters Comment Default
41 ============================== ===================== =======
42 **sentinels_ssl** Use SSL 0
43 **sentinels_username** Login
44 **sentinels_password** Password
45 **sentinels_cnx_timeout** Connection timeout 0.1
46 **sentinels_write_timeout** Write timeout 1
47 **sentinels_read_timeout** Read timeout 1
48 **no_sentinels_list_update** Use only one Sentinel 0
49 ============================== ===================== =======
50
51 Security
52 --------
53
54 Restrict network access to the redis server. For remote servers, you can
55 use :doc:`SOAP session backend<soapsessionbackend>` in cunjunction to
56 increase security for remote server that access through an unsecure
57 network