Skip to content

Commit 7af34e5

Browse files
authored
Merge pull request #8846 from obozdag/patch-10
docs: Fix typos in libraries/caching.rst
2 parents f37e326 + 6b0dfb1 commit 7af34e5

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

user_guide_src/source/libraries/caching.rst

+8-13
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@ to projects and modules. This will replace the hard-coded value in a future rele
6262
$file
6363
=====
6464

65-
This is an array of settings specific to the ``File`` handler to determine how it should save the cache files.
65+
This is an array of settings specific to the **File** handler to determine how it should save the cache files.
6666

6767
$memcached
6868
==========
6969

70-
This is an array of servers that will be used when using the ``Memcache(d)`` handler.
70+
This is an array of servers that will be used when using the **Memcached** handler.
7171

7272
$redis
7373
======
7474

75-
The settings for the Redis server that you wish to use when using the ``Redis`` and ``Predis`` handler.
75+
The settings for the Redis server that you wish to use when using the **Redis** and **Predis** handler.
7676

7777
******************
7878
Command-Line Tools
@@ -139,12 +139,11 @@ Class Reference
139139
Gets an item from the cache. If ``null`` was returned, this will invoke the callback
140140
and save the result. Either way, this will return the value.
141141

142-
.. php:method:: save(string $key, $data[, int $ttl = 60[, $raw = false]])
142+
.. php:method:: save(string $key, $data[, int $ttl = 60])
143143
144144
:param string $key: Cache item name
145145
:param mixed $data: the data to save
146146
:param int $ttl: Time To Live, in seconds (default 60)
147-
:param bool $raw: Whether to store the raw value
148147
:returns: ``true`` on success, ``false`` on failure
149148
:rtype: bool
150149

@@ -155,9 +154,6 @@ Class Reference
155154

156155
.. literalinclude:: caching/004.php
157156

158-
.. note:: The ``$raw`` parameter is only utilized by Memcache,
159-
in order to allow usage of ``increment()`` and ``decrement()``.
160-
161157
.. php:method:: delete($key): bool
162158
163159
:param string $key: name of cached item
@@ -280,11 +276,10 @@ Drivers
280276
File-based Caching
281277
==================
282278

283-
Unlike caching from the Output Class, the driver file-based caching
284-
allows for pieces of view files to be cached. Use this with care, and
285-
make sure to benchmark your application, as a point can come where disk
286-
I/O will negate positive gains by caching. This requires a cache
287-
directory to be really writable by the application.
279+
This requires a cache directory to be really writable by the application.
280+
281+
Use this with care, and make sure to benchmark your application, as a point can
282+
come where disk I/O will negate positive gains by caching.
288283

289284
Memcached Caching
290285
=================

0 commit comments

Comments
 (0)