Fetches a value from the cache.
@param string $name    The name of the item in store.
@param mixed  $default Default value to return if the key does not exist.
@author : evalor <master@evalor.cn>
@return mixed
968889
public function get($name, $default = null)
    {
        $this->connect();
        $value = self::$instance->get($this->getCacheKey($name));
        if (is_null($value) || false === $value) {
            return $default;
        }

        return $this->unPackData($value);
    }
58694
public function getItem($name, $default = null)
    {
        if (empty($this->_items[$name])) {
            $this->_items[$name] = $default;
        }
        $item = &$this->_items[$name];
        if (is_array($item) || is_null($item)) {
            $item = $this->createItem($name, $item ?: []);
        }

        return $item;
    }
9353
public function get($name, $default = null)
    {
        if (is_array($name)) {
            $result = [];

            foreach ($name as $key => $value) {
                if (is_int($key)) {
                    $result[$value] = $this->_get($value, $default);
                } else {
                    $result[$key] = $this->_get($key, $value);
                }
            }
            return $result;
        }
        return $this->_get($name, $default);
    }
1219056
public function getParam($name, $default = null)
    {
        if (isset($this->params[$name])) {
            return $this->params[$name];
        }

        return $default;
    }
686876
public function find($name, $default = null)
    {
        foreach ($this->fetchAll() as $option) {
            if ($option->key == $name) {
                return $option->value;
            }
        }

        return $default;
    }
1076198
public static function get($name = null, $default = null)
    {
        $queryParams = app()->request->getQueryParams();

        if (is_null($name)) {
            return $queryParams;
        } elseif (isset($queryParams[$name])) {
            return $queryParams[$name];
        }

        return $default;
    }
870741
public function getAttribute($name, $default = null)
    {
        if ($this->loaded) {
            return isset($this->attributes[$name]) ? $this->attributes[$name] : $default;
        }

        // Could be just hget, but Credis will return false?!
        $attributes = $this->client->hGetAll($this->getHashKey());
        return isset($attributes[$name]) ? $attributes[$name] : $default;
    }
636661
public function get($name, $default = null)
    {
        $this->connect();
        $result = self::$instance->get($this->getCacheKey($name));

        return false !== $result ? $this->unPackData($result) : $default;
    }
1256634
public function getValue($name, $default = null)
    {
        return isset($this->data[$name]) ? $this->data[$name] : $default;
    }
317273
public function get($name, $default = null)
    {
        return isset($this->attributes[$name]) ? $this->attributes[$name] : $default;
    }
1350772
public function get($name, $default = false) {
        $result = $this->handler->get($name);
        return false !== $result ? $result : $default;
    }
389003
public function get($name, $default = null)
    {
        $result = $default;
        if (isset($this->_data[$name])) {
            $result = $this->_data[$name]->value;
        }

        return $result;
    }
567945
public function get($name = null, $default = null)
    {
        $context = $this->_context;

        if (!$context->started) {
            $this->_start();
        }

        if ($name === null) {
            return $context->_SESSION;
        } elseif (isset($context->_SESSION[$name])) {
            return $context->_SESSION[$name];
        } else {
            return $default;
        }
    }
1059883
public function get($name, $default = null)
    {
        $result = $default;
        if($this->hasProperty($name, 'value')) {
            $result =  $this->_data[$name]->value;
        }

        return $result;
    }
680568
public function get($key, $default = null)
    {
        $value = $this->fetch($key);

        return (!is_null($value)) ? $value : $default;
    }
1014358
public function get($name, $default = null)
    {
        if (false === $this->has($name)) {
            return $default;
        }

        return $this->vars[$name];
    }
1042198
public function get($name, $default = null)
    {
        if (isset($this->dataContainer[$name])) {
            return $this->dataContainer[$name];
        }

        return $default;
    }