Skip to content

Commit c3d11cf

Browse files
committed
tweak the cache docs
1 parent 21fbded commit c3d11cf

13 files changed

+31
-52
lines changed

cache.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -156,19 +156,19 @@ will create pools with service IDs that follow the pattern ``cache.[type]``.
156156
>
157157
<framework:config>
158158
<!--
159-
default_doctrine_dbal_provider: Service: cache.doctrine_dbal
160-
default_psr6_provider: Service: cache.psr6
161-
default_redis_provider: Service: cache.redis
162-
default_memcached_provider: Service: cache.memcached
163-
default_pdo_provider: Service: cache.pdo
159+
default-doctrine-dbal-provider: Service: cache.doctrine_dbal
160+
default-psr6-provider: Service: cache.psr6
161+
default-redis-provider: Service: cache.redis
162+
default-memcached-provider: Service: cache.memcached
163+
default-pdo-provider: Service: cache.pdo
164164
-->
165165
<!-- "directory" attribute is only used with cache.adapter.filesystem -->
166166
<framework:cache directory="%kernel.cache_dir%/pools"
167-
default_doctrine_dbal_provider="doctrine.dbal.default_connection"
168-
default_psr6_provider="app.my_psr6_service"
169-
default_redis_provider="redis://localhost"
170-
default_memcached_provider="memcached://localhost"
171-
default_pdo_provider="pgsql:host=localhost"
167+
default-doctrine-dbal-provider="doctrine.dbal.default_connection"
168+
default-psr6-provider="app.my_psr6_service"
169+
default-redis-provider="redis://localhost"
170+
default-memcached-provider="memcached://localhost"
171+
default-pdo-provider="pgsql:host=localhost"
172172
/>
173173
</framework:config>
174174
</container>

components/cache/adapters/apcu_adapter.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. _apcu-adapter:
2-
31
APCu Cache Adapter
42
==================
53

components/cache/adapters/chain_adapter.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. _component-cache-chain-adapter:
2-
31
Chain Cache Adapter
42
===================
53

components/cache/adapters/couchbasebucket_adapter.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. _couchbase-adapter:
2-
31
Couchbase Bucket Cache Adapter
42
==============================
53

@@ -8,8 +6,8 @@ Couchbase Bucket Cache Adapter
86
The Couchbase Bucket adapter was introduced in Symfony 5.1.
97

108
This adapter stores the values in-memory using one (or more) `Couchbase server`_
11-
instances. Unlike the :ref:`APCu adapter <apcu-adapter>`, and similarly to the
12-
:ref:`Memcached adapter <memcached-adapter>`, it is not limited to the current server's
9+
instances. Unlike the :doc:`APCu adapter </components/cache/adapters/apcu_adapter>`, and similarly to the
10+
:doc:`Memcached adapter </components/cache/adapters/memcached_adapter>`, it is not limited to the current server's
1311
shared memory; you can store contents independent of your PHP environment.
1412
The ability to utilize a cluster of servers to provide redundancy and/or fail-over
1513
is also available.

components/cache/adapters/couchbasecollection_adapter.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. _couchbase-collection-adapter:
2-
31
Couchbase Collection Cache Adapter
42
==================================
53

@@ -8,8 +6,8 @@ Couchbase Collection Cache Adapter
86
The Couchbase Collection adapter was introduced in Symfony 5.4.
97

108
This adapter stores the values in-memory using one (or more) `Couchbase server`_
11-
instances. Unlike the :ref:`APCu adapter <apcu-adapter>`, and similarly to the
12-
:ref:`Memcached adapter <memcached-adapter>`, it is not limited to the current server's
9+
instances. Unlike the :doc:`APCu adapter </components/cache/adapters/apcu_adapter>`, and similarly to the
10+
:doc:`Memcached adapter </components/cache/adapters/memcached_adapter>`, it is not limited to the current server's
1311
shared memory; you can store contents independent of your PHP environment.
1412
The ability to utilize a cluster of servers to provide redundancy and/or fail-over
1513
is also available.

components/cache/adapters/doctrine_adapter.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. _doctrine-adapter:
2-
31
Doctrine Cache Adapter
42
======================
53

components/cache/adapters/doctrine_dbal_adapter.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. _doctrine-dbal-adapter:
2-
31
Doctrine DBAL Cache Adapter
42
===========================
53

components/cache/adapters/filesystem_adapter.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
.. _component-cache-filesystem-adapter:
2-
31
Filesystem Cache Adapter
42
========================
53

64
This adapter offers improved application performance for those who cannot install
7-
tools like :ref:`APCu <apcu-adapter>` or :ref:`Redis <redis-adapter>` in their
5+
tools like :doc:`APCu </components/cache/adapters/apcu_adapter>` or :doc:`Redis </components/cache/adapters/redis_adapter>` in their
86
environment. It stores the cache item expiration and content as regular files in
97
a collection of directories on a locally mounted filesystem.
108

@@ -39,9 +37,10 @@ and cache root path as constructor parameters::
3937

4038
The overhead of filesystem IO often makes this adapter one of the *slower*
4139
choices. If throughput is paramount, the in-memory adapters
42-
(:ref:`Apcu <apcu-adapter>`, :ref:`Memcached <memcached-adapter>`, and
43-
:ref:`Redis <redis-adapter>`) or the database adapters
44-
(:ref:`Doctrine DBAL <doctrine-dbal-adapter>`, :ref:`PDO <pdo-adapter>`) are recommended.
40+
(:doc:`Apcu </components/cache/adapters/apcu_adapter>`, :doc:`Memcached </components/cache/adapters/memcached_adapter>`,
41+
and :doc:`Redis </components/cache/adapters/redis_adapter>`) or the database adapters
42+
(:doc:`Doctrine DBAL </components/cache/adapters/doctrine_dbal_adapter>`, :doc:`PDO </components/cache/adapters/pdo_adapter>`)
43+
are recommended.
4544

4645
.. note::
4746

components/cache/adapters/memcached_adapter.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
.. _memcached-adapter:
2-
31
Memcached Cache Adapter
42
=======================
53

64
This adapter stores the values in-memory using one (or more) `Memcached server`_
7-
instances. Unlike the :ref:`APCu adapter <apcu-adapter>`, and similarly to the
8-
:ref:`Redis adapter <redis-adapter>`, it is not limited to the current server's
5+
instances. Unlike the :doc:`APCu adapter </components/cache/adapters/apcu_adapter>`, and similarly to the
6+
:doc:`Redis adapter </components/cache/adapters/redis_adapter>`, it is not limited to the current server's
97
shared memory; you can store contents independent of your PHP environment.
108
The ability to utilize a cluster of servers to provide redundancy and/or fail-over
119
is also available.

components/cache/adapters/pdo_adapter.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. _pdo-adapter:
2-
31
PDO Cache Adapter
42
=================
53

0 commit comments

Comments
 (0)