From 1fcee7b2aeeefca2c12529eeefd638ee48861908 Mon Sep 17 00:00:00 2001 From: George Petculescu Date: Sun, 26 Mar 2017 14:30:21 +0300 Subject: Added get_loaded_driver() method to Cache.php; updated docs. --- system/libraries/Cache/Cache.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'system/libraries/Cache') 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; + } } -- cgit v1.2.3-24-g4f1b