Move Cache::get() to DI::cache()->get()

This commit is contained in:
nupplaPhil
2020-01-07 00:45:49 +01:00
parent f68929633b
commit fe078410a1
16 changed files with 20 additions and 33 deletions

View File

@@ -30,17 +30,4 @@ class Cache
const MINUTE = CacheClass::MINUTE;
/** @deprecated Use CacheClass::INFINITE */
const INFINITE = CacheClass::INFINITE;
/**
* @brief Fetch cached data according to the key
*
* @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)
{
return DI::cache()->get($key);
}
}