Skip to content

[Cache] Add note about lazy=true option #9984

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 2, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions components/cache/adapters/redis_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ array of ``key => value`` pairs representing option names and their respective v

// associative array of configuration options
array(
'lazy' => false,
'persistent' => 0,
'persistent_id' => null,
'timeout' => 30,
Expand All @@ -113,6 +114,10 @@ Available Options
If none is specified, it will return ``\Redis`` if the ``redis`` extension is
available, and ``\Predis\Client`` otherwise.

``lazy`` (type: ``bool``, default: ``false``)
Enables or disables lazy connections to the backend. Already set to ``true`` by default
when configuring Redis pools via FrameworkBundle.

``persistent`` (type: ``int``, default: ``0``)
Enables or disables use of persistent connections. A value of ``0`` disables persistent
connections, and a value of ``1`` enables them.
Expand Down