Skip to content

Commit 1782667

Browse files
[Cache] Add note about lazy=true option
1 parent c90f20a commit 1782667

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/cache/adapters/redis_adapter.rst

Lines changed: 5 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,10 @@ 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. Already set to ``true`` by default
119+
when configuring Redis pools via FrameworkBundle.
120+
116121
``persistent`` (type: ``int``, default: ``0``)
117122
Enables or disables use of persistent connections. A value of ``0`` disables persistent
118123
connections, and a value of ``1`` enables them.

0 commit comments

Comments
 (0)