68 public abstract function get($id, $group =
'default');
79 public abstract function save($value, $lifetime = NULL, $id = FALSE, $group =
'default');
87 public abstract function clean($group=
false);
96 public abstract function remove($id, $group =
'default');
106 public function start($lifetime, $id, $group =
'default')
108 if ($data = $this->
get($id, $group)) {
114 $this->_lifetime = $lifetime;
129 public function end($save = TRUE)
137 $value = ob_get_contents();
142 return $this->
save($value, $this->_lifetime, $this->_id, $this->_group);
150 public static function driver($driver = NULL)
153 $driver = self::$_default_driver;
156 if (!isset(self::$_drivers[$driver])) {
157 require_once
CORE_PATH .
"libs/cache/drivers/{$driver}_cache.php";
158 $class = $driver .
'cache';
159 self::$_drivers[$driver] =
new $class();
162 return self::$_drivers[$driver];
172 self::$_default_driver = $driver;