Returns persistent state value.
@param string $key state key.
@return mixed state value.
160348
protected function getState($key)
    {
        if (!Yii::$app->has('session')) {
            return null;
        }
        /* @var \yii\web\Session $session */
        $session = Yii::$app->get('session');
        $key = $this->getStateKeyPrefix() . $key;
        $value = $session->get($key);
        return $value;
    }
1360193
public function value($key)
    {
        $this->init();
        if (isset($_SESSION[$key])) {
            return $_SESSION[$key];
        }

        return null;
    }
1082166
public function getKeyValue($key)
    {
        foreach ($this->array as $k => $v) {
            if (strtolower($key) == strtolower($k)) {
                return $v;
            }
        }

        return '';
    }
1322257
public function get(string $key)
    {
        $hash =  self::findFirst([
            'conditions' => "{$this->settingsKey} = ?0 and key = ?1",
            'bind' => [$this->getSettingsKey(), $key]
        ]);

        if ($hash) {
            return $hash->value;
        }

        return null;
    }
946537
public function getPersister($key)
    {
        if (empty($key) || false === $this->hasPersister($key)) {
            throw PersisterException::persisterNotFound($key);
        }
        return $this->persisters[$key];
    }
1094735
public function getValue( $key )
	{
		if( !isset( $this->_values[ $key ] ) ) {
			return null;
		}

		return $this->_values[ $key ];
	}
1086027
public function get($key)
    {
        $this->load();
        $value = NestedArrayUtil::getNestedArrayValue($this->state, explode('.', $key), $exists);

        return $exists ? $value : false;
    }
436925
public static function get($key) {
        if (isset(self::$keyvals) && isset(self::$keyvals[$key])) {
            return self::$keyvals[$key];
        }
        return '';
    }
1278768
public static function &get($key)
    {
        self::startIf();
        if (isset($_SESSION[$key])) {
            return $_SESSION[$key];
        } else {
            $val = null;
            return $val;
        }
    }
611243
public function get($key)
    {
        $getResult = $this->getValue($key);
        $unserialized = @unserialize($getResult);

        if (Util::hasInternalExpireTime($unserialized)) {
            $getResult = $unserialized['v'];
        }

        return $getResult;
    }
1069236
private function getValue ($key)
    {
        return isset($this->configuration[$key])
            ? $this->configuration[$key]
            : null;
    }
94621
public function get($key)
	{
	    $value = static::getRaw($key);
        
	    //\Wslim\Ioc::logger('cache')->debug(sprintf('get: %s %s', $key, print_r($this, true)));
	    
		$value = $this->decodeValue($value);
		
		return $value;
	}
452605
static function findValue(string $key)
    {
        return self::hasKey($key)
            ? self::$keyToValueMap[static::class][$key]
            : null;
    }
1284125
public function getValue($key)
    {
        $status = $this->provider->getStringValue($this->root, $this->path, $key, $value = new Variant());

        if($status === 0) {
            return (string) $value;
        }

        return null;
    }
639709
public function get($key)
  {
    $uuid = uniqid(static::CACHE_CHECK_PREFIX, true);
    $value = wp_cache_get($key, $this->getPrefix(), false, $uuid);

    if ($value !== $uuid) {
      return $value;
    }
  }
978016
public function GetValueCache($key)
	{
		// save the trouble of retrieving the cache if it is not enabled
		if ($this->ValueCacheTimeout <= 0) return null;

		if (strlen($key) > 250) $key = substr($key,0,150) . md5($key);
		$obj = $this->_level1Cache->Get(md5($key));
		return $obj ? $obj : $this->_level2Cache->Get($key);
	}
721940
public function getCache($key) {
        if($this->modified === true || !$this->cacheEnabled) {return false;}
        else{
            $this->cacheValue = $this->cacheObj->fetch($key);
            return $this->cacheValue;
        }
    }