summaryrefslogtreecommitdiffstats
path: root/user_guide_src
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2017-02-21 10:53:46 +0100
committerAndrey Andreev <narf@devilix.net>2017-02-21 10:53:46 +0100
commit1d9aaee34ea77fdb68d79d7add37f26dd2649c00 (patch)
tree9590c58a82b195d77fb7a3ad0d72828f46a3efab /user_guide_src
parent157db44a550b194039b1f3c3a70dc259e8f57d5f (diff)
[ci skip] Changelog, docs changes following PR #5025
Diffstat (limited to 'user_guide_src')
-rw-r--r--user_guide_src/source/changelog.rst1
-rw-r--r--user_guide_src/source/libraries/caching.rst27
2 files changed, 21 insertions, 7 deletions
diff --git a/user_guide_src/source/changelog.rst b/user_guide_src/source/changelog.rst
index 5cfe0ca74..f1f0b6834 100644
--- a/user_guide_src/source/changelog.rst
+++ b/user_guide_src/source/changelog.rst
@@ -37,6 +37,7 @@ Release Date: Not Released
- :doc:`Cache Library <libraries/caching>` changes include:
+ - Added 'apcu' driver.
- Added UNIX socket connection support to the 'memcached' driver.
- Added 'database' configuration option to the 'redis' driver, allowing to auto-select another database.
- Changed the 'memcached' driver to ignore configurations that don't specify a hostname.
diff --git a/user_guide_src/source/libraries/caching.rst b/user_guide_src/source/libraries/caching.rst
index 81019c015..6621c94ea 100644
--- a/user_guide_src/source/libraries/caching.rst
+++ b/user_guide_src/source/libraries/caching.rst
@@ -42,7 +42,8 @@ to avoid collisions when you're running multiple applications on the same enviro
::
- $this->load->driver('cache',
+ $this->load->driver(
+ 'cache',
array('adapter' => 'apc', 'backup' => 'file', 'key_prefix' => 'my_')
);
@@ -101,7 +102,7 @@ Class Reference
$this->cache->save('cache_item_id', 'data_to_cache');
- .. note:: The ``$raw`` parameter is only utilized by APC and Memcache,
+ .. note:: The ``$raw`` parameter is only utilized by APC, APCu and Memcache,
in order to allow usage of ``increment()`` and ``decrement()``.
.. php:method:: delete($id)
@@ -201,7 +202,19 @@ specific adapter to the driver loader as follows::
$this->cache->apc->save('foo', 'bar', 10);
For more information on APC, please see
-`http://php.net/apc <http://php.net/apc>`_.
+`https://php.net/apc <https://php.net/apc>`_.
+
+APC User Cache (APCu) Caching
+=============================
+
+All of the methods listed above can be accessed without passing a
+specific adapter to the driver loader as follows::
+
+ $this->load->driver('cache');
+ $this->cache->apcu->save('foo', 'bar', 10);
+
+For more information on APCu, please see
+`https://php.net/apcu <https://php.net/apcu>`_.
File-based Caching
==================
@@ -230,7 +243,7 @@ specific adapter to the driver loader as follows::
$this->cache->memcached->save('foo', 'bar', 10);
For more information on Memcached, please see
-`http://php.net/memcached <http://php.net/memcached>`_.
+`https://php.net/memcached <https://php.net/memcached>`_.
WinCache Caching
================
@@ -244,7 +257,7 @@ specific adapter to the driver loader as follows::
$this->cache->wincache->save('foo', 'bar', 10);
For more information on WinCache, please see
-`http://php.net/wincache <http://php.net/wincache>`_.
+`https://php.net/wincache <https://php.net/wincache>`_.
Redis Caching
=============
@@ -267,11 +280,11 @@ specific adapter to the driver loader as follows::
$this->cache->redis->save('foo', 'bar', 10);
For more information on Redis, please see
-`http://redis.io <http://redis.io>`_.
+`https://redis.io <https://redis.io>`_.
Dummy Cache
===========
This is a caching backend that will always 'miss.' It stores no data,
but lets you keep your caching code in place in environments that don't
-support your chosen cache. \ No newline at end of file
+support your chosen cache.