Retrieve an item from the cache by key.

@param $key
@param bool $strict
@param null $default

@return mixed|null

@throws CacheMissException
@throws \Exception
338689
public function get($key, $strict = true, $default = null) {
        $value = $this->memcached->get($key);
        $resultCode = $this->memcached->getResultCode();
        if ($resultCode == \Memcached::RES_SUCCESS) {
            return $value;
        }
        if (\Memcached::RES_NOTFOUND == $resultCode) {
            if ($strict) {
                throw new CacheMissException($key);
            }
            return $default;
        }
        throw new \Exception('Memcached failed with result code ' . $resultCode);
    }
335177
public function get($key = null, $default = null)
	{
		$fail = uniqid('__FAIL__', true);

		$result = Arr::get($this->data, $key, $fail);

		if ($result === $fail)
		{
			if ($this->parentEnabled)
			{
				$result = $this->parent->get($key, $default);
			}
			else
			{
				$result = result($default);
			}
		}

		return $result;
	}
636307
public function get($key, $default = null) {
		$key = $this->extractKey($key);
		if (isset($this->collection[$key])) {
			return $this->collection[$key];
		} else {
			return $default;
		}
	}
494906
public function get($key, $default = null) {
		$this->refresh();
		$keys = explode('.', $key);
		$conf = $this->cache;
		foreach ($keys as $v) {
			if (isset($conf[$v])) {
				$conf = $conf[$v];
			} else {
				return $default;
			}
		}
		return $conf;
	}
1254971
protected function getCache($key, $default)
    {
        if (!isset($this->cache[$key])) {
            $this->cache[$key] = is_callable($default) ? $default() : $default;
        }
        return $this->cache[$key];
    }
278116
public static function get($key, $default = null)
    {
        return isset(self::$variables[$key]) ? self::$variables[$key] : $default;
    }
1278076
public function get($key, $default = null)
    {
        list($baseKey, $searchKey) = $this->fetchKey($key);

        $value = $this->fetchValue($baseKey, $searchKey);

        return (! is_null($value)) ? $value : $default;
    }
1236113
public function get($key, $default = null)
    {
        $return = null;

        if (self::$cacheGetter) {
            $return = call_user_func_array(self::$cacheGetter, func_get_args());
        } else {
            $file = $this->getCacheFile($key);

            if (file_exists($file) && ($data = unserialize(file_get_contents($file)))) {
                $return = $data['expired_at'] > time() ? $data['data'] : null;
            }
        }

        if (!$return) {
            $return = is_callable($default) ? $default($key) : $default;
        }

        return $return;
    }
520857
public function getItem($key, $default = null)
    {
        if (isset($this->container[$key])) {
            return $this->container[$key];
        }

        return $default;
    }
105216
static public function get($key = null, $default = null) {
        if (is_null($key)) return json_decode(json_encode(self::$_config));
        
        $config = &self::$_config;
        
        return Utils::arrayGet($config, $key, $default);
    }
770382
public function get($key, $default = null)
    {
        if (is_array($key)) {
            return $this->many($key);
        }

        $value = $this->store->get($this->itemKey($key));

        if (is_null($value) || $value === false) {
            $this->fireCacheEvent('missed', [$key]);

            $value = value($default);
        } else {
            $this->fireCacheEvent('hit', [$key, $value]);
        }

        return $value;
    }
17762
public function get($key, $default = null)
    {
        if ($this->offsetExists($key)) {
            return is_array($this->items[$key]) ? new static($this->items[$key]) : $this->items[$key];
        }

        return value($default);
    }
160455
public function get($key, $default = null)
    {
        if (! $this->has($key)) {
            return $default;
        }

        if (! $this->isNestedKey($key)) {
            return $this->items[$key];
        }

        return $this->getNestedValueByKey($key);
    }
1368869
public function get($key, $default = null)
    {
        $res = $this->retrieve($key);

        if (false === $res) {
            $this->forget($key);

            return false;
        }

        return $res;
    }
843292
public function get(string $section, string $key, $default = null)
    {
        return $this->cacheStore->get($section . $this->sectionKeyDelimiter . $key, $default);
    }
1045918
public function get($key, $default = null)
    {
        $cache = $this->adapter->getItem($key);

        return (isset($cache) && $cache !== null) ? $cache : $default;
    }
81139
public function get( $key, $default = NULL )
    {
        if ( $this->offsetExists( $key ) )
        {
            return $this->items[ $key ];
        }

        return Util::value( $default );
    }