get method

@param $key       string
@param $cache_cb  callable
[optional]
@param $cas_token float
[optional]

@return mixed
4279
public function get($key = null, $cache_cb = null, &$cas_token = null)
    {

        if (isset($this->cacheListing [$key])) {
            return parent::get($key, $cache_cb, $cas_token);
        }

        return false;
    }
1323225
public function get($key = null)
    {
        if (!isset($this->list[$key])) return null;
        $this->currentIdentifier = $this->cacheListing[$key]->getId();

        return $this->list[$key];
    }
786575
public function get($key)
    {
        $context = $this->_context;

        if ($context->cache !== null && array_key_exists($key, $context->cache)) {
            return $context->cache[$key];
        } elseif ($this->_enabled) {
            if ($this->_is_cli) {
                if (($r = apcu_fetch($this->_prefix ? ($this->_prefix . $key) : $key)) === false) {
                    return false;
                }
                return time() <= $r[0] ? $r[1] : false;
            } else {
                return apcu_fetch($this->_prefix ? ($this->_prefix . $key) : $key);
            }
        } else {
            return false;
        }
    }
1128544
@SuppressWarnings("unchecked")
    protected <T> T getFromCache(String cacheName, String key, Class<T> clazz) {
        Object obj = getFromCache(cacheName, key);
        if (obj == null) {
            return null;
        }
        if (clazz.isAssignableFrom(obj.getClass())) {
            return (T) obj;
        }
        return null;
    }
721940
public function getCache($key) {
        if($this->modified === true || !$this->cacheEnabled) {return false;}
        else{
            $this->cacheValue = $this->cacheObj->fetch($key);
            return $this->cacheValue;
        }
    }
458821
public static function get($key)
    {
        if (!self::$instance) return null;

        return self::$instance->cache->get($key);
    }
1084436
public function get($object, $key, $cache=null)
    {
        $query = $this->query(
            "{$this->foreign}=?", $object->get($this->local));

        return new Collection($this->class, $query, $this->adder($object));
    }
722738
private function getSchemaCache($key)
    {
        if (isset($this->model_schema_cache[$key])) {
            return $this->model_schema_cache[$key];
        }

        return false;
    }
376444
protected Object getFromCache(String cacheName, String key) {
        try {
            ICache cache = getCache(cacheName);
            return cache != null ? cache.get(key) : null;
        } catch (CacheException e) {
            LOGGER.warn(e.getMessage(), e);
            return null;
        }
    }
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);
    }
337863
protected function retrieve($key)
    {
        if (($cache = $this->memcache->get($this->key . $key)) !== false) {
            return $cache;
        }

        return null;
    }
773442
protected function fetch($key)
    {
        $results = $this->cache->get($key, null);

        if (!$results) {
            //Reparse all entities to find some @VIC Annotation
            foreach ($this->driver->getAllClassNames() as $className) {
                $this->driver->parse(new \ReflectionClass($className));
            }
            $results = $this->cache->get($key, []);
        }

        return $results;
    }
1070766
public function get($key, callable $callback = null, $fresh = false)
    {
        if ($fresh || !$this->has($key)) {
            if (!is_null($callback)) {
                $this->set($key, $callback());
            } else {
                throw new \Exception(sprintf("Cache key '%s' not found.", $key));
            }
        } /* else {
            echo "HIT!";
        } */
        return $this->cache[$key];
    }
852603
public function get($cacheKey)
    {
        // TODO: Refactor for strict types!
        $path = $this->resolvePath($cacheKey, false);
        if (file_exists($path)) {
            return file_get_contents($path);
        }

        return null;
    }
29661
public function GetCache($key)
    {
		return (array_key_exists($key, $this->_cache) ? $this->_cache[$key] : null);
	}
929163
public function getter($key, $cache=null)
    {
        $rel = $this;

        return function($object) use ($key, $rel, $cache) {
            return $rel->get($object, $key, $cache);
        };
    }
547685
public function get($key){
		if(DEBUG_MODE){
			BDebug::message('[Memcached]: Get key('.$key.')');
			}
		$mc=$this->getMemcached();
		if(empty($mc))return NULL;
		$this->queries_get_count++;
		return $mc->get($key);
		}