Jarves\PluginController::isValidCache PHP Method

isValidCache() protected method

Returns whether this cache is valid(exists) or not.
protected isValidCache ( string $cacheKey ) : boolean
$cacheKey string
return boolean
    protected function isValidCache($cacheKey)
    {
        /** @var Cacher $cacher */
        $cacher = $this->get('jarves.cache.cacher');
        return $cacher->getDistributedCache($cacheKey) !== null;
    }