src/Cache/DatabaseCacheUtil.php
public function keyExists(string $key): bool
    {
        $result = $this->database->prepare('SELECT * FROM tl_db_cache WHERE cacheKey = ?')->execute($key);

        return $result->numRows > 0;
    }
public function keyExists(string $key): bool
    {
        $result = $this->database->prepare('SELECT * FROM tl_db_cache WHERE cacheKey = ?')->execute($key);

        return $result->numRows > 0;
    }
public function keyExists ( string $ key ) : bool { $ result = $ this -> database -> prepare ( 'SELECT * FROM tl_db_cache WHERE cacheKey = ?' ) -> execute ( $ key ) ; return $ result -> numRows > 0 ; }
Check for a given cache key.

@param string $key

@return bool
Check for a given cache key .