Habari\Cache::expired PHP Method

expired() public static method

Check if a named value in the cache has expired.
public static expired ( mixed $name )
$name mixed The name of the cached item or an array of array( string $group, string $name )
    public static function expired($name)
    {
        if (is_array($name)) {
            $array = $name;
            list($group, $name) = $array;
        } else {
            $group = self::$default_group;
        }
        $group = self::site_unique() . $group;
        return self::$instance->_expired($name, $group);
    }