const QUARTER_HOUR = 900;
const FIVE_MINUTES = 300;
const MINUTE = 60;
+ const INFINITE = 0;
/**
* @var Cache\ICacheDriver
* @param string $prefix Prefix of the keys (optional)
*
* @return array Empty if the driver doesn't support this feature
+ * @throws \Exception
*/
public static function getAllKeys($prefix = null)
{
* @param string $key The key to the cached data
*
* @return mixed Cached $value or "null" if not found
+ * @throws \Exception
*/
public static function get($key)
{
* @param integer $duration The cache lifespan
*
* @return bool
+ * @throws \Exception
*/
public static function set($key, $value, $duration = self::MONTH)
{
* @param string $key The key to the cached data
*
* @return bool
+ * @throws \Exception
*/
public static function delete($key)
{
*
* @param boolean $outdated just remove outdated values
*
- * @return void
+ * @return bool
*/
public static function clear($outdated = true)
{