Determines if the cache has the given key.

@param string $key
@return bool
556221
public function has($key)
	{
		$this->memcached->get($key);
		if ($this->memcached->getResultCode() == Memcached::RES_NOTFOUND)
		{
			return false;
		}

		return true;
	}
148906
public function has($key)
    {
        $result = array_key_exists($key, $this->data);
        if (!$result && $this->isDotNotation($key)) {
            $result = true;
            $keys = explode('.', $key);
            $data = $this->data;

            foreach ($keys as $key) {
                if (!is_array($data) || !array_key_exists($key, $data)) {
                    $result = false;
                    break;
                }

                $data = $data[$key];
            }
        }

        return $result;
    }
571166
public function has($key)
    {
        return isset($this->data[$key]) || isset($this->session[$key]);
    }
669642
public function exists(string $key): bool
    {
        $key = $this->getKey($key);

        return cache()->has($key);
    }
690301
public function has($key)
	{
		if ( ! isset($this->jar[$key]) or $this->jar[$key]->isDeleted())
		{
			if ( ! $this->parentEnabled or ! $this->parent->has($key))
			{
				return false;
			}
		}

		return true;
	}
288391
public function has(string $key){
        $data   = $this->status() === self::ACTIVE
            ? $_SESSION : $this->finishedData;
        
        return array_key_exists($key, $data);
    }
856790
public function has(string $key): bool
    {
        if (array_key_exists($key, $this->ttl) &&
            $this->time() - $this->ttl[$key] > 0
        ) {
            unset($this->ttl[$key]);
            unset($this->storage[$key]);

            return false;
        }

        return array_key_exists($key, $this->storage);
    }
294186
public function has(?string $key = null) : bool
    {
        $key = $this->constructKey($key);

        return $this->parseKey($key, function ($part, $result) {
            return isset($result[$part]);
        });
    }
1207867
public function has(string $key): bool
    {
        $this->assertRead();

        return \array_key_exists($key, $this->data);
    }
568087
public function has($key)
    {
        $file = $this->getFileName($key);

        if ( !file_exists($file) )
        {
            return false;
        }

        // if cache file expire
        if ( filemtime($file) >= time() )
        {
            static::$keys[$key] = true;

            return true;
        }
        else
        {
            unset(static::$keys[$key]);
            unlink($file);

            return false;
        }
    }
681341
public function isInCache($key)
  {
    $file = $this->cachePath . $this->getEncodedKey($key);
    return file_exists($file);
  }
11042
public function has($key) {
		$this->refresh();
		$keys = explode('.', $key);
		$conf = $this->cache;
		foreach ($keys as $v) {
			if (isset($conf[$v])) {
				$conf = $conf[$v];
			} else {
				return false;
			}
		}
		return true;
	}
1181595
public function has($key) {
        if (is_array($key)) {
            $key = $key['key'];
        }
        return isset($this->store[$key]);
    }
1155245
public function containsKey($key)
    {
        if (!$this->enabled)
            return false;

        $has_key = (eaccelerator_get($this->key($key)) !== null);

        $this->Logger->debug("Cache contains {$key}? " . (($has_key) ? 'TRUE' : 'FALSE'));

        return $has_key;
    }
433328
public function has(string $key): bool
    {
        $key = $this->prepareKey($key);
        return Arr::has($this->properties, $key);
    }
543476
public function has(/*# string */ $key)/*# : int */
    {
        // try front-end cache first
        $res = $this->frontHas($key);
        if ($res) {
            return $res;
        }

        // try backend cache
        return $this->backHas($key);
    }
1088173
public function has($key)
    {
        $keys = (func_num_args() > 1) ? func_get_args() : (array) $key;

        foreach ($keys as $key) {
            if(!array_key_exists($key, $_SESSION))
                return false;
        }

        return true;
    }