8000 [Cache] Document (filesystem|phpfiles|pdo|chain) cache (adapter|simple) prune method and prune command by robfrawley · Pull Request #8209 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Cache] Document (filesystem|phpfiles|pdo|chain) cache (adapter|simple) prune method and prune command #8209

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
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
Prev Previous commit
Next Next commit
Typos and wrapped long lines
  • Loading branch information
javiereguiluz authored Jan 23, 2018
commit 1322ffdbe649cf16d636b29b1bdb45c5e02b391a
19 changes: 11 additions & 8 deletions components/cache/adapters/filesystem_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ a collection of directories on a locally mounted filesystem.

.. tip::

The performance of this adapter can be greatly increased by utalizing a
The performance of this adapter can be greatly increased by utilizing a
temporary, in-memory filesystem, such as `tmpfs`_ on Linux, or one of the
many other `RAM disk solutions`_ available.

Expand All @@ -41,16 +41,19 @@ and cache root path as constructor parameters::

.. caution::

The overhead of filesystem IO often makes this adapter one of the *slower* choices. If throughput is
paramount, the in-memory adapters (:ref:`Apcu <apcu-adapter>`, :ref:`Memcached <memcached-adapter>`,
and :ref:`Redis <redis-adapter>`) or the database adapters (:ref:`Doctrine <doctrine-adapter>` and
:ref:`PDO <pdo-doctrine-adapter>`) are recommended.
The overhead of filesystem IO often makes this adapter one of the *slower*
choices. If throughput is paramount, the in-memory adapters
(:ref:`Apcu <apcu-adapter>`, :ref:`Memcached <memcached-adapter>`, and
:ref:`Redis <redis-adapter>`) or the database adapters
(:ref:`Doctrine <doctrine- adapter>` and :ref:`PDO <pdo-doctrine-adapter>`)
are recommended.

.. note::

Since Symfony 3.4, this adapter implements :class:`Symfony\\Component\\Cache\\PruneableInterface`,
enabling manual :ref:`pruning of expired cache items <component-cache-cache-pool-prune>` by
Since Symfony 3.4, this adapter implements
:class:`Symfony\\Component\\Cache\\PruneableInterface`, enabling manual
:ref:`pruning of expired cache items <component-cache-cache-pool-prune>` by
calling its ``prune()`` method.

.. _`tmpfs`: https://wiki.archlinux.org/index.php/tmpfs
.. _`RAM disk solutions`: https://en.wikipedia.org/wiki/List_of_RAM_drive_software
.. _`RAM disk solutions`: https://en.wikipedia.org/wiki/List_of_RAM_drive_software
0