8000 minor #9984 [Cache] Add note about lazy=true option (nicolas-grekas, … · symfony/symfony-docs@baa76dc · GitHub
[go: up one dir, main page]

Skip to content

Commit baa76dc

Browse files
committed
minor #9984 [Cache] Add note about lazy=true option (nicolas-grekas, javiereguiluz)
This PR was merged into the 3.4 branch. Discussion ---------- [Cache] Add note about lazy=true option Fixes #9023 Commits ------- 2407d97 Proposed a reword abut the "lazy" explanation 1782667 [Cache] Add note about lazy=true option
2 parents 6d19d08 + 2407d97 commit baa76dc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/cache/adapters/redis_adapter.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ array of ``key => value`` pairs representing option names and their respective v
9696

9797
// associative array of configuration options
9898
array(
99+
'lazy' => false,
99100
'persistent' => 0,
100101
'persistent_id' => null,
101102
'timeout' => 30,
@@ -113,6 +114,11 @@ Available Options
113114
If none is specified, it will return ``\Redis`` if the ``redis`` extension is
114115
available, and ``\Predis\Client`` otherwise.
115116

117+
``lazy`` (type: ``bool``, default: ``false``)
118+
Enables or disables lazy connections to the backend. It's ``false`` by
119+
default when using this as a stand-alone component and ``true`` by default
120+
when using it inside a Symfony application.
121+
116122
``persistent`` (type: ``int``, default: ``0``)
117123
Enables or disables use of persistent connections. A value of ``0`` disables persistent
118124
connections, and a value of ``1`` enables them.

0 commit comments

Comments
 (0)
0