Get value from cache

@param \Itkg\Core\CacheableInterface $item

@return string
191989
public function get(CacheableInterface $item)
    {
        if (false !== $result = parent::get($item)) {
            return $result;
        }

        return $this->adapter->get($item);
    }
1074228
public function getItem($item)
	{
		return isset($this->items[$item]) ? $this->items[$item] : false;
	}
1040817
public function getAdminObjectSourceName($item)
    {
        /** @var AbstractAdmin $admin */
        $admin = $this->getContainer()->get('sonata.admin.pool')->getAdminByClass($item->getSourceClass());

        if ($admin->getObject($item->getSourceItemId())) {
            return $admin->getObject($item->getSourceItemId())->getValue();
        }

        return null;
    }
966603
public static function resolve($item)
    {
        try {
            return static::toConstant($item);
        } catch (\Exception $_ex) {
            //  Ignored...
        }

        try {
            return static::toValue($item);
        } catch (\Exception $_ex) {
            //  Ignored...
        }

        //  Sorry charlie...
        throw new \InvalidArgumentException('The item "' . $item . '" can not be resolved.');
    }
1235651
public function prepare($item)
    {
        $prepared = array();

        foreach($item as $key => $value) {
            //if it's null
            if($value === null) {
                //set it and continue
                $prepared[$key] = null;
                continue;
            }

            //if is array
            if(is_array($value)) {
                //recursive
                $prepared[$key] = $this->prepare($value);
                continue;
            }

            //if it can be converted
            if(is_scalar($value)) {
                $prepared[$key] = (string) $value;
                continue;
            }

            //we tried our best ...
            $prepared[$key] = $value;
        }

        return $prepared;
    }
1254852
public function getType($item)
    {
        switch ($this->getProductType($item)) {
            case Bundle::TYPE_CODE:
                return $this->bundle->create()->setItem($item);
            case Grouped::TYPE_CODE:
                return $this->grouped->create()->setItem($item);
            case Configurable::TYPE_CODE:
                return $this->configurable->create()->setItem($item);
            default:
                return $this->generic->create()->setItem($item);
        }
    }
1309745
private function getCachedReachableRoles($id, &$item)
    {
        $roles = null;

        // find the hierarchy in execution cache
        if (isset($this->cacheExec[$id])) {
            return $this->cacheExec[$id];
        }

        // find the hierarchy in cache
        if (null !== $this->cache) {
            $item = $this->cache->getItem($id);
            $reachableRoles = $item->get();

            if ($item->isHit() && null !== $reachableRoles) {
                $roles = $reachableRoles;
            }
        }

        return $roles;
    }
398249
protected function getType( $item )
    {
        $type = gettype( $item );
        if ( is_object( $item ) )
            $type .= "[" . get_class( $item ) . "]";

        return $type;
    }
613183
public function getValue(string $key)
    {
        $driver = $this->getDriver();
        $value = $driver->get($key);
        if ($this->hasEventListeners('itemGetValue')) {
            $this->dispatchEvent('itemGetValue', new \BearFramework\App\Cache\ItemGetValueEventDetails($key, $value));
        }
        if ($this->hasEventListeners('itemRequest')) {
            $this->dispatchEvent('itemRequest', new \BearFramework\App\Cache\ItemRequestEventDetails($key));
        }
        return $value;
    }
1005765
public function getItemId(Item $item)
    {
        /* @var $source \AnimeDb\Bundle\CatalogBundle\Entity\Source */
        foreach ($item->getSources() as $source) {
            if (strpos($source->getUrl(), $this->browser->getHost()) === 0 &&
                preg_match(self::REG_ITEM_ID, $source->getUrl(), $match)
            ) {
                return (int)$match['id'];
            }
        }
        return 0;
    }
892053
public function save(CacheItemInterface $item)
    {
        $metadata = $item->getMetadata();
        $metadata[ 'data' ] = $item->get();

        return wincache_ucache_set($this->prefixKey . $item->getKey(), $metadata, $metadata[ 'ttl' ]);
    }
525448
public function getItem($key)
    {
        if (isset($_SESSION['__CACHE__'][$key])) {
            $data = json_decode($_SESSION['__CACHE__'][$key], true);
            if ($data['ttl'] === 0 || (time() - $data['start'] <= $data['ttl'])) {
                $value = $data['value'];
            } else {
                $this->deleteItem($key);
            }
        }

        return (isset($value)) ? $value : false;
    }
1013376
public function get( $item )
    {
        return isset( $this->config[$item] ) ? $this->config[$item] : null;
    }
456158
public function getQty(StockItemInterface $item): UomQty
    {
        $units = $this->stockUnitRepository
            ->findByStockItem($item);

        return $this->computeQtyForUnits($item->getUom(), $units);
    }
111577
public function get(CacheableInterface $item)
    {
        $targetFile = $this->getTargetFile($item->getHashKey());

        $return = false;
        if (file_exists($targetFile)) {
            if ($item->getTtl() > 0 && ((filemtime($targetFile) + $item->getTtl()) < time())) {
                $this->remove($item);
            } else {
                $return = unserialize(file_get_contents($targetFile, false, null, strlen(self::STR_PREFIX)));
            }
        }

        return $return;
    }
63337
public function getItemModel(core_kernel_classes_Resource $item)
    {
        $returnValue = null;

        $itemModel = $item->getOnePropertyValue($this->itemModelProperty);
        if ($itemModel instanceof core_kernel_classes_Resource) {
            $returnValue = $itemModel;
        }

        return $returnValue;
    }
105949
public function get(array $adapters, CacheableInterface $item)
    {
        foreach ($adapters as $adapter) {

            if (false !== $value = $adapter->get($item)) {
                return $value;
            }
        }

        return false;
    }