summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source
diff options
context:
space:
mode:
authorGeorge Petculescu <gxgpet@gmail.com>2017-03-26 13:30:21 +0200
committerGeorge Petculescu <gxgpet@gmail.com>2017-03-26 13:30:21 +0200
commit1fcee7b2aeeefca2c12529eeefd638ee48861908 (patch)
treef01ee04870b7f25ca4f13f3acc2847efa7bcae0e /user_guide_src/source
parentc7c0bdf4f7af7c4e71b073ee87ddb792087bdfac (diff)
Added get_loaded_driver() method to Cache.php; updated docs.
Diffstat (limited to 'user_guide_src/source')
-rw-r--r--user_guide_src/source/libraries/caching.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/user_guide_src/source/libraries/caching.rst b/user_guide_src/source/libraries/caching.rst
index 6621c94ea..2226b4281 100644
--- a/user_guide_src/source/libraries/caching.rst
+++ b/user_guide_src/source/libraries/caching.rst
@@ -188,6 +188,16 @@ Class Reference
.. note:: The information returned and the structure of the data is dependent
on which adapter is being used.
+ .. php:method:: get_loaded_driver()
+
+ :returns: Loaded driver name, based on initialization config ('apc', 'apcu', 'dummy', 'file', 'memcached', 'redis' or 'wincache')
+ :rtype: string
+
+ This method will return the caching driver currently used after initialization.
+ ::
+
+ echo $this->cache->get_loaded_driver(); // Will return something like "file"
+
*******
Drivers
*******