Gets the specified cache entry from the cache as an object.

@param string $key A unique identifier for the cache entry.
@param string $regionName A name of region.

@return mixed|null
337512
public function get($key, $regionName = null) {
        if ($this->containsFiles($key, $regionName, $policy, $cache)) {
            $this->getCacheContent($policy, $cache, $result);

            return $result;
        }
        else {
            return null;
        }
    }
31545
public function get($key){
		$mc=$this->getMemcache();
		if(empty($mc))return NULL;
		$this->queries_get_count++;
		return $mc->get($key);
		}
593397
public function get($key)
    {
        $value = $this->memcached->get($this->prefix.$key);

        if ($this->memcached->getResultCode() == 0) {
            return $value;
        }
    }
1345319
protected function get($key)
    {
        $this->checkForNonEmptyKey($key);
        if (!$this->requestDataHasBeenRetrieved) {
            $this->retrieveRequestData();
        }
        if (!isset($this->cachedRequestData[$key])) {
            return null;
        }

        return $this->cachedRequestData[$key];
    }
1004348
public function get($key)
    {
        $this->hit = false;

        $inMemoryValue = InMemoryAdapter::getInstance()->get($key);

        if (InMemoryAdapter::getInstance()->isHit()) {
            $this->hit = true;
            return $inMemoryValue;
        }

        $value = $this->memcached->get($key);

        if ($value) {
            $this->hit = true;
            InMemoryAdapter::getInstance()->set($key, $value, 0);
            return $value;
        }

        return (null !== $this->nextAdapter) ? $this->nextAdapter->get($key) : null;
    }
976471
public function get($key)
	{
		$value = wincache_ucache_get($this->prefix.$key);

		if ($value !== false)
		{
			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);
	}
575959
protected function retrieve($key)
    {
        $result = $this->apcu
            ? apcu_fetch($this->key . $key, $success)
            : apc_fetch($this->key . $key, $success)
        ;
        return ($success === true) ? $result : null;
    }
1323225
public function get($key = null)
    {
        if (!isset($this->list[$key])) return null;
        $this->currentIdentifier = $this->cacheListing[$key]->getId();

        return $this->list[$key];
    }
922382
public function get($key) {
    $out = NULL;
    // Read the json encoded value from disk if it exists.
    $path = $this->getFileName($key);
    if (file_exists($path)) {
      $out = file_get_contents($path);
      $out = json_decode($out, TRUE);
    }
    return $out;
  }
468952
public function getItem($cache, $key)
    {
        $cache = self::encodeCache($cache);
        $key = self::encodeKey($key);
        $url = "projects/{$this->project_id}/caches/$cache/items/$key";

        $this->setJsonHeaders();
        try {
            $res = $this->apiCall(self::GET, $url);
        } catch (Http_Exception $e) {
            if ($e->getCode() == Http_Exception::NOT_FOUND) {
                return null;
            } else {
                throw $e;
            }
        }
        return self::json_decode($res);
    }
1118261
public function clear($regionName = null) {
        $path = $this->getPath($regionName);
        $result = count(glob($path . DIRECTORY_SEPARATOR . '*.cache'));

        array_map('unlink', glob($path . DIRECTORY_SEPARATOR . '*.cache'));
        array_map('unlink', glob($path . DIRECTORY_SEPARATOR . '*.policy'));

        return $result;
    }
1332085
private function getKey ( $key = NULL ) {
        if ($key === NULL) {
            $key = $this->__keyName;
            return $this->getClassKey() . '_' . $this->$key;
        }
        return $this->getClassKey() . '_' . $key;
    }
772387
public function get($key = '')
    {
        try {
            if ($this->cacheInstance !== NULL && is_object($this->cacheInstance)) {
                /**
                 * @var $cache object
                 */
                if (is_array($key)) {
                    $cache = $this->cacheInstance->getItems($key);
                } else {
                    $cache = $this->cacheInstance->getItem($key);
                }
                if (!$cache->isHit()) {
                    $result = NULL;
                    $this->debug->debug(__FUNCTION__, 'Unavailable Cache for Key: ' . $key);
                } else {
                    $result = $cache->get();
                    $this->debug->debug(__FUNCTION__, 'Get Cache from Key: ' . $key . ', result: ' . json_encode($result));
                }
                $message = 'Final get Content from Key: ' . $key . ' => Output result: ' . json_encode($result);
                $this->debug->info(__FUNCTION__, $message);

                return $result;
            } else {
                $this->debug->error(__FUNCTION__, 'Unavailable cacheInstance');

                return NULL;
            }
        }
        catch (\Exception $e) {
            $message = 'Error File: ' . $e->getFile() . ' - Line: ' . $e->getLine() . ' - Code: ' . $e->getCode() . ' - Message: ' . $e->getMessage();
            $this->debug->error(__FUNCTION__, $message);

            return $message;
        }
    }
745407
public function retrieve($key)
    {
        $key = (string)$key;
        if ($cache = $this->loadCache()) {
            if (isset($cache[$key])) {
                if (!$this->isExpired($cache[$key]['time'], $cache[$key]['expire'])) {
                    return unserialize($cache[$key]['data']);
                }
            }
        }
        return null;
    }
605360
private function getFromCacheByKey($key)
    {
        if ( ! $this->cache->contains($key)) {
            return null;
        }

        $serialized = $this->cache->fetch($key);

        return $this->unserializeAcl($serialized);
    }
737554
public function read($key)
    {
        $this->_cachedData or $this->_cachedData = Cache::get('model-metadata');
        return isset($this->_cachedData[$key]) ? $this->_cachedData[$key] : null;
    }