Skip to content

Commit 605763c

Browse files
committed
minor fixes
1 parent 60bbddb commit 605763c

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
@@ -321,12 +321,11 @@ Custom Provider Options
321321
-----------------------
322322

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

329-
330329
.. configuration-block::
331330

332331
.. code-block:: yaml
@@ -389,11 +388,11 @@ the pool.
389388
]);
390389
391390
$container->getDefinition('app.my_custom_redis_provider', \Redis::class)
391+
->addArgument('redis://localhost')
392392
->addArgument([
393-
'redis://localhost',
394-
[ 'lazy' => true, 'timeout' => 10 ],
395-
])
396-
->addArgument(31536000);
393+
'lazy' => true,
394+
'timeout' => 10
395+
]);
397396
398397
Creating a Cache Chain
399398
----------------------

0 commit comments

Comments
 (0)