public static function CacheHelper::get in Helper 7
A copy of cache_get() that respects expiration.
See also
1 call to CacheHelper::get()
File
- lib/
CacheHelper.php, line 10
Class
Code
public static function get($cid, $bin = 'cache') {
if ($cache = cache_get($cid, $bin)) {
if (!static::isCacheUnexpired($cache)) {
return FALSE;
}
}
return $cache;
}