Changeset 2999
- Timestamp:
- 07/08/2008 06:36:43 AM (5 months ago)
- Location:
- trunk/system/libraries/drivers
- Files:
-
- 5 modified
-
Cache.php (modified) (1 diff)
-
Cache/Apc.php (modified) (1 diff)
-
Cache/Eaccelerator.php (modified) (1 diff)
-
Cache/File.php (modified) (1 diff)
-
Cache/Sqlite.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/drivers/Cache.php
r2430 r2999 24 24 /** 25 25 * Get a cache item. 26 * Return FALSE if the cache item is not found. 26 27 */ 27 28 public function get($id); -
trunk/system/libraries/drivers/Cache/Apc.php
r2430 r2999 18 18 } 19 19 20 public function get($ key)20 public function get($id) 21 21 { 22 return apc_fetch($ key);22 return apc_fetch($id); 23 23 } 24 24 -
trunk/system/libraries/drivers/Cache/Eaccelerator.php
r2430 r2999 20 20 public function get($id) 21 21 { 22 return eaccelerator_get($id);22 return (($return = eaccelerator_get($id)) === NULL) ? FALSE : $return; 23 23 } 24 24 -
trunk/system/libraries/drivers/Cache/File.php
r2593 r2999 174 174 } 175 175 176 // Return NULLif there is no data177 return isset($data) ? $data : NULL;176 // Return FALSE if there is no data 177 return isset($data) ? $data : FALSE; 178 178 } 179 179 -
trunk/system/libraries/drivers/Cache/Sqlite.php
r2598 r2999 178 178 179 179 // No valid cache foud 180 return NULL;180 return FALSE; 181 181 } 182 182
