Skip to content

Commit ede2c16

Browse files
committed
minor fixes
1 parent 55196c8 commit ede2c16

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

cache.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,11 @@ Custom Provider Options
310310
-----------------------
311311

312312
Some providers have specific options that could be configured. The
313-
:doc:`RedisAdapter </components/cache/adapters/redis_adapter>` allows you do create
314-
providers with option ``lazy`` and ``timeout`` etc. To use these options with non-default
313+
:doc:`RedisAdapter </components/cache/adapters/redis_adapter>` allows you to create
314+
providers with option ``lazy``, ``timeout`` etc. To use these options with non-default
315315
values you need to create your own ``\Redis`` provider and use that when configuring
316316
the pool.
317317

318-
319318
.. configuration-block::
320319

321320
.. code-block:: yaml
@@ -378,11 +377,11 @@ the pool.
378377
]);
379378
380379
$container->getDefinition('app.my_custom_redis_provider', \Redis::class)
380+
->addArgument('redis://localhost')
381381
->addArgument([
382-
'redis://localhost',
383-
[ 'lazy' => true, 'timeout' => 10 ],
384-
])
385-
->addArgument(31536000);
382+
'lazy' => true,
383+
'timeout' => 10
384+
]);
386385
387386
Creating a Cache Chain
388387
----------------------

0 commit comments

Comments
 (0)