File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,11 @@ Libraries
116
116
- The ``$dbGroup `` parameter of ``Validation::run() `` now accepts not only
117
117
a database group name, but also a database connection instance or an array
118
118
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.
119
124
120
125
Helpers and Functions
121
126
=====================
Original file line number Diff line number Diff line change @@ -679,7 +679,9 @@ RedisHandler Driver
679
679
680
680
.. note :: Since Redis doesn't have a locking mechanism exposed, locks for
681
681
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.
683
685
684
686
Redis is a storage engine typically used for caching and popular because
685
687
of its high performance, which is also probably your reason to use the
@@ -713,6 +715,14 @@ sufficient:
713
715
714
716
.. literalinclude :: sessions/041.php
715
717
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
+
716
726
.. _sessions-memcachedhandler-driver :
717
727
718
728
MemcachedHandler Driver
You can’t perform that action at this time.
0 commit comments