CI_DB_Cache =============== Database Cache Class * Class name: CI_DB_Cache * Namespace: Properties ---------- ### $CI public object $CI CI Singleton * Visibility: **public** ### $db public object $db Database object Allows passing of DB object so that multiple database connections and returned DB objects can be supported. * Visibility: **public** Methods ------- ### __construct void CI_DB_Cache::__construct($db) Constructor * Visibility: **public** #### Arguments * $db **mixed** ### check_path boolean CI_DB_Cache::check_path(string $path) Set Cache Directory Path * Visibility: **public** #### Arguments * $path **string** - <p>Path to the cache directory</p> ### read string CI_DB_Cache::read(string $sql) Retrieve a cached query The URI being requested will become the name of the cache sub-folder. An MD5 hash of the SQL statement will become the cache file name. * Visibility: **public** #### Arguments * $sql **string** ### write boolean CI_DB_Cache::write(string $sql, object $object) Write a query to a cache file * Visibility: **public** #### Arguments * $sql **string** * $object **object** ### delete void CI_DB_Cache::delete(string $segment_one, string $segment_two) Delete cache files within a particular directory * Visibility: **public** #### Arguments * $segment_one **string** * $segment_two **string** ### delete_all void CI_DB_Cache::delete_all() Delete all existing cache files * Visibility: **public**