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

get() public method

Loads data from the cache.
public get ( string $entryIdentifier ) : mixed
$entryIdentifier string An identifier which describes the cache entry to load
return mixed The cache entry's content as a string or FALSE if the cache entry could not be loaded
    public function get($entryIdentifier)
    {
        $this->connect();
        $statementHandle = $this->databaseHandle->prepare('SELECT "content" FROM "cache" WHERE "identifier"=? AND "context"=? AND "cache"=?' . $this->getNotExpiredStatement());
        $statementHandle->execute([$entryIdentifier, md5($this->environmentConfiguration->getApplicationIdentifier()), $this->cacheIdentifier]);
        $fetchedColumn = $statementHandle->fetchColumn();
        // Convert hexadecimal data into binary string,
        // because it is not allowed to store null bytes in PostgreSQL.
        if ($fetchedColumn !== false && $this->pdoDriver === 'pgsql') {
            $fetchedColumn = hex2bin($fetchedColumn);
        }
        return $fetchedColumn;
    }