Get the max value of a given key.

@param  string  $key
@return mixed
171385
public function max($key)
    {
        return $this->reduce(function($result, $item) use ($key)
        {
            return (is_null($result) || $item->{$key} > $result) ? $item->{$key} : $result;
        });
    }
1082166
public function getKeyValue($key)
    {
        foreach ($this->array as $k => $v) {
            if (strtolower($key) == strtolower($k)) {
                return $v;
            }
        }

        return '';
    }
887561
public function get($key) {
        if (isset($this->store[$key])) {
            if ($this->ttl == 0) {
                $value = $this->store[$key][0];
                if ($this->maxsize !== false) {
                    // Make sure the element is now in the end of array.
                    $this->set($key, $value);
                }
                return $value;
            } else if ($this->store[$key][1] >= (cache::now() - $this->ttl)) {
                return $this->store[$key][0];
            } else {
                // Element is present but has expired.
                $this->check_ttl();
            }
        }
        return false;
    }
98876
public function getLastByKey($key)
    {
        if (!isset($this->keyList[$key])) {
            return null;
        }
        
        // returns the last entry
        return $this->keyList[$key]->top();
    }
250960
public function getKeyValue($key)
    {
        return empty($this->_data[$key]) ? null: $this->_data[$key];
    }
1253725
public function get($key)
    {
        if (!$this->isEnabled()) {
            return null;
        }

        $value = apc_fetch($this->prefix() . $key);

        return false === $value ? null : unserialize($value);
    }
345481
public function getValue($key){
		return $this->translator->getValue($this->chain, $this->document, $key);
	}
1123432
public function get($key) {
        $value = $this->_data[$key] ?? null;

        if ($value instanceof \Closure) {
            $value = $value();
            $this->set($key, $value);
        }
        return $value;
    }
434033
public function getStringValue($key, $maxlength = null)
    {
        $value = $this->get($key);
        if ($value === null) {
            return null;
        }
        return ($maxlength === null) ? $value : substr($value, 0, $maxlength);
    }
1318247
public function get(string $key)
    {
        if (!isset($this->values[$key])) {
            $value = ini_get($key);

            switch (self::CONVERSIONS[$key] ?? 0) {
                case self::CONVERT_TO_BOOL:
                    $value = Str::toBoolean($value);
                    break;
                case self::CONVERT_TO_INT:
                    $value = (int) $value;
                    break;
                case self::CONVERT_TO_BYTES:
                    $value = self::convertToBytes($value);
                    break;
            }

            $this->values[$key] = $value;
        }

        return $this->values[$key];
    }
246641
public function get($key)
    {
        $key       = (string)$key;
        $value     = null;
        $this->hit = false;

        if (\array_key_exists($key, self::$registry)) {
            if (self::$registry[$key]['expires'] >= (new DateTime())) {
                $this->hit = true;
                return $this->restoreDataStructure($key);
            }
            unset(self::$registry[$key]);
        }

        return $value;
    }
940468
public function get($key)
    {
        $entry = $this->redis->hGet($this->cacheKey, $key);

        if ($entry) {
            $entry = unserialize($entry);

            if ($entry['expire']) {
                // Check expires
                $now = new \DateTime('now', new \DateTimeZone('UTC'));
                if ((int) $now->format('U') > $entry['expire']) {
                    $this->remove($key);

                    return null;
                }
            }

            return $entry['value'];
        }

        return null;
    }
687125
public function expires($key)
    {
        if (!isset($this->records[$key])) {
            return 0;
        }

        return (int) max(0, $this->records[$key]['expire'] - time());
    }
822397
public function getAsArray($key)
    {
        $rawValue = $this->get($key);
        if (!is_array($rawValue)) {
            $rawValue = [];
        }

        return $rawValue;
    }
1190924
public static function get(string $key)
    {
        if (!in_array($key, self::$allowedKeys) || !isset(self::$storedValues[$key])) {
            throw new \InvalidArgumentException('Invalid key given');
        }

        return self::$storedValues[$key];
    }
397639
public function getAndRemove(string $key)
	{
		$storedValue = $this->get($key);

		if($storedValue !== false)
		{
			$this->remove($key);
		}

		return $storedValue;
	}
1346137
public function get($key)
    {
        $valTO = $this->evaluate($key);
        if ($valTO->fails()) {
            return false;
        }

        return $valTO->getValidValue();
    }