diff options
author | Andrey Andreev <narf@devilix.net> | 2017-03-28 12:27:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-28 12:27:42 +0200 |
commit | 87c81b078a322b4cb028fb7cb86b22453bf1823c (patch) | |
tree | 0f95d6de2223c503b3939aa3fdff6dd1e383551f /user_guide_src | |
parent | c7c0bdf4f7af7c4e71b073ee87ddb792087bdfac (diff) | |
parent | af3484600b2cbfddf8cedebbc87ae388e2b2c721 (diff) |
Merge pull request #5067 from gxgpet/develop
New Cache method: get_loaded_driver()
Diffstat (limited to 'user_guide_src')
-rw-r--r-- | user_guide_src/source/libraries/caching.rst | 10 |
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..be3f894ec 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 after initialization ('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 ******* |