Phalcon\Translate\Adapter\Redis::loadValueByKey PHP Method

loadValueByKey() protected method

Loads key from Redis to local cache.
protected loadValueByKey ( string $key )
$key string
    protected function loadValueByKey($key)
    {
        if (!isset($this->cache[$key])) {
            $result = $this->redis->get($key);
            $result = unserialize($result);
            if (is_array($result)) {
                $this->cache[$key] = $result;
            }
        }
    }