Neos\Cache\Backend\PdoBackend::has PHP Method

has() public method

Checks if a cache entry with the specified identifier exists.
public has ( string $entryIdentifier ) : boolean
$entryIdentifier string An identifier specifying the cache entry
return boolean TRUE if such an entry exists, FALSE if not
    public function has($entryIdentifier)
    {
        $this->connect();
        $statementHandle = $this->databaseHandle->prepare('SELECT COUNT("identifier") FROM "cache" WHERE "identifier"=? AND "context"=? AND "cache"=?' . $this->getNotExpiredStatement());
        $statementHandle->execute([$entryIdentifier, md5($this->environmentConfiguration->getApplicationIdentifier()), $this->cacheIdentifier]);
        return $statementHandle->fetchColumn() > 0;
    }