1
0
Fork 0

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

This commit is contained in:
Philipp Holzer 2020-01-07 00:45:49 +01:00
commit fe078410a1
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
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);
}
}