Returns the data associated with the given key.

@param string $key An identifier for the content stored in the session.
@return mixed The data associated with the given key or NULL
@throws Exception\SessionNotStartedException
17928
public function getData($key)
    {
        if ($this->started !== true) {
            throw new Exception\SessionNotStartedException('The session has not been started yet.', 1218034660);
        }
        return (array_key_exists($key, $this->data)) ? $this->data[$key] : null;
    }
1079768
public function get($key)
	{
		$file = $this->path($key);

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

		$data = @unserialize(file_get_contents($file));

		if (!$data)
		{
			throw new RuntimeException('Cache file is invalid.');
		}

		if ($this->isDataExpired($data))
		{
			$this->forget($key);
			return null;
		}

		return $data['value'];
	}
1127057
public function get($key)
    {
        $file=$this->getCacheDir().$key;
        if(file_exists($file)){
            $content=file_get_contents($file);
            $content=unserialize($content);
            return $content;
        }
        return null;
    }
99230
public function getSession($key = null)
    {
        $user = $this->session->get('user', array());

        if (isset($key)) {
            return gplcart_array_get($user, $key);
        }

        return $user;
    }
708303
public function take($key)
    {
        self::requireSession();
        if (false === \array_key_exists($key, $_SESSION)) {
            throw new SessionException(\sprintf('key "%s" not found in session', $key));
        }
        $value = $_SESSION[$key];
        unset($_SESSION[$key]);

        return $value;
    }
1246071
private function getSession($key)
    {
        return isset($this->collection[$this->id][$key]) ? $this->collection[$this->id][$key] : null;
    }
655476
public function read($key)
    {
        $key = strval($key);
        $val = null;

        if(strlen($key) == 0)
        {
            return $val;
        }

        $this->openSession();

        if(isset($_SESSION[$key]) == true)
        {
            $val = $_SESSION[$key];
        }

        $this->closeSession();

        return $val;
    }
848923
public static function get($key) {
        if (!isset(self::$data[$key])) {
            throw new Exception("invalid config key");
        }

        return self::$data[$key];
    }
457793
public function get($key)
    {
        if(!$this->has($key)) {
            throw new MissingKeyException(sprintf('No value for requested key: %s', $key));
        }

        return $this->session->get($this->path.$key);
    }
1094189
public function getData($key)
    {
        return empty($this->data[$key]) ? null : $this->data[$key];
    }
745276
public static function get(string $key)
    {
        if (isset($_COOKIE[$key]) === false) {
            return null;
        }

        $serializedValue = $_COOKIE[$key];
        $value = unserialize($serializedValue);

        return $value;
    }
750948
public function &offsetGet($key) {
        for($i = 0; $i < count($this->arrays); ++$i) {
            if(Util::exists($this->arrays[$i], $key)) {
                return $this->arrays[$i][$key];
            }
        }
        throw new KeyNotFoundException($key);
    }
1118586
protected function getValue($key)
    {
        $getResult = $this->getClient()->get($key);

        if ($this->getClient()->getResultCode() === \Memcached::RES_NOTFOUND) {
            throw new KeyNotFoundException();
        } elseif ($getResult === false) {
            throw new \Exception($this->getClient()->getResultMessage(), $this->getClient()->getResultCode());
        }

        return $getResult;
    }
251117
public function get($key, $default = null)
    {
        $this->initSession();
        $key_name = $this->getSessionKeyName($key);

        if (isset($_SESSION[$key_name])) {
            return $_SESSION[$key_name];
        } else {
            return $default;
        }
    }
905196
public function get($key)
    {
        $key = $this->salted($key, $this->suffix);

        $raw = $this->predis->get($key);

        // every response should be a php serialized string.
        // values not matching this pattern will explode.
        // missing data should return null, which is not unserialized.

        if (is_string($raw)) {
            return unserialize($raw);
        }

        return $raw;
    }
1024421
public function get($key)
    {
        $data = ($this->isApcUEnabled) ? apcu_fetch($key) : apc_fetch($key);

        return ($data == false) ? null : $data;
    }
563088
public static function get($key)
    {
        if (isset($_SESSION[$key]) === false) {
            return null;
        }

        return unserialize($_SESSION[$key]);
    }