private function containsFiles($key, $regionName, &$policy = null, &$cache = null) {
        $this->getCacheFilePaths($key, $regionName, $policy, $cache);

        if (!is_file($policy) && !is_file($cache)) {
            return false;
        }
        elseif (!is_file($policy) && is_file($cache)) {
            $this->tryDeleteFile($cache);
        }
        elseif (is_file($policy) && !is_file($cache)) {
            $this->tryDeleteFile($policy);
        }

        return true;
    }
private function containsFiles($key, $regionName, &$policy = null, &$cache = null) {
        $this->getCacheFilePaths($key, $regionName, $policy, $cache);

        if (!is_file($policy) && !is_file($cache)) {
            return false;
        }
        elseif (!is_file($policy) && is_file($cache)) {
            $this->tryDeleteFile($cache);
        }
        elseif (is_file($policy) && !is_file($cache)) {
            $this->tryDeleteFile($policy);
        }

        return true;
    }
private function containsFiles ( $ key , $ regionName , & $ policy = null , & $ cache = null ) { $ this -> getCacheFilePaths ( $ key , $ regionName , $ policy , $ cache ) ; if ( ! is_file ( $ policy ) && ! is_file ( $ cache ) ) { return false ; } elseif ( ! is_file ( $ policy ) && is_file ( $ cache ) ) { $ this -> tryDeleteFile ( $ cache ) ; } elseif ( is_file ( $ policy ) && ! is_file ( $ cache ) ) { $ this -> tryDeleteFile ( $ policy ) ; } return true ; }
Checks whether the cache entry already exists in the cache.
Checks whether the cache entry already exists in the cache .