/** * Checks if a cache entry with the specified identifier exists. * * @param string $entryIdentifier An identifier specifying the cache entry * @return bool TRUE if such an entry exists, FALSE if not * @api */ public function has($entryIdentifier) { if ($this->usedPeclModule === 'memcache') { return $this->memcache->get($this->identifierPrefix . $entryIdentifier) !== false; } // pecl-memcached supports storing literal FALSE $this->memcache->get($this->identifierPrefix . $entryIdentifier); return $this->memcache->getResultCode() !== \Memcached::RES_NOTFOUND; }