Skip to content

Commit 615aa18

Browse files
committed
docs: add user guide
1 parent 8b867d2 commit 615aa18

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

user_guide_src/source/changelogs/v4.5.0.rst

+5
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ Libraries
116116
- The ``$dbGroup`` parameter of ``Validation::run()`` now accepts not only
117117
a database group name, but also a database connection instance or an array
118118
of database settings.
119+
- **Session:**
120+
- ``RedisHandler`` now can configure the interval time for acquiring locks
121+
(``$lockRetryInterval``) and the number of retries (``$lockMaxRetries``).
122+
- Now you can use Redis ACL (username and password) with ``RedisHandler``.
123+
See :ref:`sessions-redishandler-driver` for details.
119124

120125
Helpers and Functions
121126
=====================

user_guide_src/source/libraries/sessions.rst

+11-1
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,9 @@ RedisHandler Driver
679679

680680
.. note:: Since Redis doesn't have a locking mechanism exposed, locks for
681681
this driver are emulated by a separate value that is kept for up
682-
to 300 seconds. With ``v4.3.2`` or above, you can connect ``Redis`` with **TLS** protocol.
682+
to 300 seconds.
683+
684+
.. note:: Starting with v4.3.2, you can connect Redis with **TLS** protocol.
683685

684686
Redis is a storage engine typically used for caching and popular because
685687
of its high performance, which is also probably your reason to use the
@@ -713,6 +715,14 @@ sufficient:
713715

714716
.. literalinclude:: sessions/041.php
715717

718+
Starting with v4.5.0, you can use Redis ACL (username and password)::
719+
720+
public string $savePath = 'tcp://localhost:6379?auth[user]=username&auth[pass]=password';
721+
722+
.. note:: Starting with v4.5.0, the interval time for acquiring locks
723+
(``$lockRetryInterval``) and the number of retries (``$lockMaxRetries``) are
724+
configurable.
725+
716726
.. _sessions-memcachedhandler-driver:
717727

718728
MemcachedHandler Driver

0 commit comments

Comments
 (0)