Skip to content

[Cache] Remove invalid info about cache pool services #19115

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
Changes from all commits
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
21 changes: 2 additions & 19 deletions cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ The Cache component comes with a series of adapters pre-configured:
logic to dynamically select the best possible storage based on your system
(either PHP files or APCu).

Some of these adapters could be configured via shortcuts. Using these shortcuts
will create pools with service IDs that follow the pattern ``cache.[type]``.
Some of these adapters could be configured via shortcuts.

.. configuration-block::

Expand All @@ -140,15 +139,10 @@ will create pools with service IDs that follow the pattern ``cache.[type]``.
cache:
directory: '%kernel.cache_dir%/pools' # Only used with cache.adapter.filesystem

# service: cache.doctrine_dbal
default_doctrine_dbal_provider: 'doctrine.dbal.default_connection'
# service: cache.psr6
default_psr6_provider: 'app.my_psr6_service'
# service: cache.redis
default_redis_provider: 'redis://localhost'
# service: cache.memcached
default_memcached_provider: 'memcached://localhost'
# service: cache.pdo
default_pdo_provider: 'pgsql:host=localhost'

.. code-block:: xml
Expand All @@ -164,13 +158,6 @@ will create pools with service IDs that follow the pattern ``cache.[type]``.
https://symfony.com/schema/dic/symfony/symfony-1.0.xsd"
>
<framework:config>
<!--
default-doctrine-dbal-provider: Service: cache.doctrine_dbal
default-psr6-provider: Service: cache.psr6
default-redis-provider: Service: cache.redis
default-memcached-provider: Service: cache.memcached
default-pdo-provider: Service: cache.pdo
-->
<!-- "directory" attribute is only used with cache.adapter.filesystem -->
<framework:cache directory="%kernel.cache_dir%/pools"
default-doctrine-dbal-provider="doctrine.dbal.default_connection"
Expand All @@ -191,15 +178,11 @@ will create pools with service IDs that follow the pattern ``cache.[type]``.
$framework->cache()
// Only used with cache.adapter.filesystem
->directory('%kernel.cache_dir%/pools')
// Service: cache.doctrine_dbal

->defaultDoctrineDbalProvider('doctrine.dbal.default_connection')
// Service: cache.psr6
->defaultPsr6Provider('app.my_psr6_service')
// Service: cache.redis
->defaultRedisProvider('redis://localhost')
// Service: cache.memcached
->defaultMemcachedProvider('memcached://localhost')
// Service: cache.pdo
->defaultPdoProvider('pgsql:host=localhost')
;
};
Expand Down