summaryrefslogtreecommitdiffstats
path: root/system
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 /system
parentc7c0bdf4f7af7c4e71b073ee87ddb792087bdfac (diff)
Added get_loaded_driver() method to Cache.php; updated docs.
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Cache/Cache.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/system/libraries/Cache/Cache.php b/system/libraries/Cache/Cache.php
index b56f33e74..676375c37 100644
--- a/system/libraries/Cache/Cache.php
+++ b/system/libraries/Cache/Cache.php
@@ -253,4 +253,14 @@ class CI_Cache extends CI_Driver_Library {
return $support[$driver];
}
+
+ /**
+ * Get currently loaded driver
+ *
+ * @return string
+ */
+ public function get_loaded_driver()
+ {
+ return $this->_adapter;
+ }
}