Jenner\SimpleFork\Cache\FileCache::checkExpire PHP Method

checkExpire() protected method

检查key是否过期
protected checkExpire ( $cache_data ) : boolean
$cache_data
return boolean
    protected function checkExpire($cache_data)
    {
        $time = time();
        $is_expire = intval($cache_data['expire']) !== 0 && intval($cache_data['time']) + intval($cache_data['expire']) < $time;
        if ($is_expire) {
            return false;
        }
        return true;
    }