summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2017-03-28 12:27:42 +0200
committerGitHub <noreply@github.com>2017-03-28 12:27:42 +0200
commit87c81b078a322b4cb028fb7cb86b22453bf1823c (patch)
tree0f95d6de2223c503b3939aa3fdff6dd1e383551f /system
parentc7c0bdf4f7af7c4e71b073ee87ddb792087bdfac (diff)
parentaf3484600b2cbfddf8cedebbc87ae388e2b2c721 (diff)
Merge pull request #5067 from gxgpet/develop
New Cache method: get_loaded_driver()
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Cache/Cache.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/system/libraries/Cache/Cache.php b/system/libraries/Cache/Cache.php
index b56f33e74..1b1801b5a 100644
--- a/system/libraries/Cache/Cache.php
+++ b/system/libraries/Cache/Cache.php
@@ -253,4 +253,16 @@ class CI_Cache extends CI_Driver_Library {
return $support[$driver];
}
+
+ // ------------------------------------------------------------------------
+
+ /**
+ * Get currently loaded driver
+ *
+ * @return string
+ */
+ public function get_loaded_driver()
+ {
+ return $this->_adapter;
+ }
}