/** @deprecated Use CacheClass::INFINITE */
const INFINITE = CacheClass::INFINITE;
- /**
- * @brief Returns all the cache keys sorted alphabetically
- *
- * @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)
- {
- return DI::cache()->getAllKeys($prefix);
- }
-
/**
* @brief Fetch cached data according to the key
*
{
return DI::cache()->delete($key);
}
-
- /**
- * @brief Remove outdated data from the cache
- *
- * @param boolean $outdated just remove outdated values
- *
- * @return bool
- * @throws \Exception
- */
- public static function clear($outdated = true)
- {
- return DI::cache()->clear($outdated);
- }
}