*
Gets item description by key
@param string $itemKey
@return string
18992
public static function getItemDescriptionByKey($itemKey)
    {
        $itemKey = strtoupper($itemKey);
        if (isset(self::$availableItemKeysList[$itemKey])) {
            return self::$availableItemKeysList[$itemKey];
        } else {
            return false;
        }
    }
1105321
public function get($key)
    {
        /** @var \PageCache\Storage\CacheItemInterface $item */
        $item = $this->adapter->get($key);

        if (!$item) {
            return null;
        }

        $this->randomizeExpirationTime($item);

        // Cache expired?
        if ($this->isExpired($item)) {
            return null;
        }

        return $item;
    }
93468
public function getItem($key)
    {
        if (!$this->getOptions()->getEnabled()) {
            return null;
        }

        $this->normalizeKey($key);

        $result = null;
        try {
            $result = $this->internalGetItem($key);
        } catch (\Exception $e) {
        }

        return $result;
    }
285660
public function get($key)
	{
		if (!$this->exists($key))
		{
			throw $this->getNotExistException($key);
		}

		$key = $this->normalizeKey($key);

		return $this->items[$key];
	}
326284
public function getDataItem($itemname)
    {
        if (isset($this->data[$itemname])) {
            return $this->data[$itemname];
        }

        return null;
    }
242551
public function getGetItem($key)
    {
        return isset($this->get[$key]) ? $this->get[$key] : null;
    }
466596
public function getPropertyItem($key) {
		if ($this->containsPropertyItemKey($key)) {
			return $this->propertyItems[$key];	
		}
	
		return $this->createPropertyItem($key);
	}
969032
public function getItem($key)
    {
        // Get the element from the buffer if still remains valid!
        if (in_array($key, $this->bufferKeys)) {
            $cacheItem = $this->buffer[$key];
            if ($cacheItem->getExpiresInSecs() > 1) {
                return $cacheItem;
            }
        }
        
        // Get the element from the cache!
        $result = $this->_cacheEngine->get($key);
        $cache = new CacheItem($key, $result, $result !== null);

        $this->addElementToBuffer($cache);

        return $cache;
    }
558643
public function get(string $key)
    {
        if (array_key_exists($key, $this->get)) {
            return $this->get[$key];
        }

        return '';
    }
1205783
public static function get($key)
    {
        $item = self::getCacheService()->user()->getItem(self::key($key));
        if ($item->isHit()) {
            return $item->get();
        }
        return null;
    }
1302729
protected function extractValue($item, $key)
    {
        if (is_object($item)) {
            if (method_exists($item, 'hasMethod') && $item->hasMethod($key)) {
                return $item->{$key}();
            }
            return $item->{$key};
        } else {
            if (array_key_exists($key, $item)) {
                return $item[$key];
            }
        }
    }
95630
public static function GetUrlForImage(int $itemType = GnUrlItemType::Community, string $itemKey = NULL, int $sizeType = GnThumbnailSize::Size_Full)
    {
        $sizeSuffix = $sizeType == GnThumbnailSize::Size_Full ? "" : "@{$sizeType}";

        switch ($itemType) {
            case GnUrlItemType::Community:
                return static::$DataUrl . "/commimg/{$itemKey}{$sizeSuffix}";
            case GnUrlItemType::Event:
                return static::$DataUrl . "/eventsimg/{$itemKey}{$sizeSuffix}";
            case GnUrlItemType::Impression:
                return static::$DataUrl . "/impression/{$itemKey}{$sizeSuffix}";
            case GnUrlItemType::Nose:
                return static::$DataUrl . "/profimg/{$itemKey}{$sizeSuffix}";
            case GnUrlItemType::PoI:
                return static::$DataUrl . "/locimg/{$itemKey}{$sizeSuffix}";

                // track has no image
            case GnUrlItemType::Track:
                return NULL;
        }

        throw new GnException("unexpected itemType={$itemType}");
    }
583036
protected function getCacheItem(/*# string */ $key)/*# : CacheItemExtendedInterface */
    {
        // validate key first
        $this->validateKey($key);

        // try local cache
        if ($this->use_item_cache) {
            if (!isset($this->item_cache[$key[0]][$key])) {
                $this->item_cache[$key[0]][$key] = $this->createCacheItem($key);
            }
            return $this->item_cache[$key[0]][$key];
        } else {
            return $this->createCacheItem($key);
        }
    }
1367430
public function getString($nsKey, $itemKey)
    {
        $this->prepareCache($nsKey);
        if ($this->hasKey($nsKey, $itemKey)) {
            $fp = $this->getHandle($nsKey, $itemKey, self::POSITION_START);
            $str = '';
            while (!feof($fp) && false !== $bytes = fread($fp, 8192)) {
                $str .= $bytes;
            }
            $this->freeHandle($nsKey, $itemKey);

            return $str;
        }
    }
842308
public function find($itemId)
    {
        foreach ($this->items as $item) {
            if ($itemId === $item->id) {
                return $item;
            }
        }

        return;
    }
215345
public function findItemByKey(string $key)
    {
        return $this->items->first(function (BaseItem $item, $index) use ($key) {
            return $item->getKey() == $key;
        });
    }
1014666
protected function getItem($key)
    {
        $cache_file = $this->path($key);
        if (!file_exists($cache_file) || !is_readable($cache_file)) {
            return false;
        }

        $cache_data = file_get_contents($cache_file);
        if (empty($cache_data)) {
            return false;
        }
        $cache_data = json_decode($cache_data, true);
        if ($cache_data) {
            $check_expire = $this->checkExpire($cache_data);
            if ($check_expire === false) {
                $this->delete($key);
                return false;
            }
        }

        return $cache_data;
    }