Inheritance: extends Phalcon\Translate\Adapter\Base, implements Phalcon\Translate\AdapterInterface
Example #1
0
 /**
  * Loads key from Redis to local cache.
  *
  * @param string $key
  */
 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;
         }
     }
 }