* @access public
*/
var $gc_probability = 1;
-
+
/**
* Storage container object.
*
$this->garbageCollection();
}
-
+
/**
* Returns the requested dataset it if exists and is not expired
*
return NULL;
} // end func get
-
/**
* Stores the given data in the cache.
*
return $this->container->save($id, $data, $expires, $group, "");
} // end func save
-
-
+
/**
* Stores a dataset without additional userdefined data.
*
return $this->container->save($id, $cachedata, $expires, $group, $userdata);
} // end func extSave
-
/**
* Loads the given ID from the cache.
*
return $this->container->load($id, $group);
} // end func load
-
-
+
/**
* Returns the userdata field of a cached data set.
*
return $this->container->getUserdata($id, $group);
} // end func getUserdata
-
-
+
/**
* Removes the specified dataset from the cache.
*
return $this->container->delete($id, $group);
} // end func delete
-
-
+
/**
* Flushes the cache - removes all data from it
*
return $this->container->flush($group);
} // end func flush
-
-
+
/**
* Checks if a dataset exists.
*
return $this->container->isCached($id, $group);
} // end func isCached
-
-
+
/**
* Checks if a dataset is expired
*
return $this->container->isExpired($id, $group, $max_age);
} // end func isExpired
-
+
/**
* Generates a "unique" ID for the given value
*
$this->container->garbageCollection();
$last_run = time();
}
-
} // end func garbageCollection
-
-
} // end class cache
?>