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

exists() public method

public exists ( string $translateKey ) : boolean
$translateKey string
return boolean
    public function exists($translateKey)
    {
        $index = $this->getLongKey($translateKey);
        $key = $this->getShortKey($index);
        $this->loadValueByKey($key);
        return isset($this->cache[$key]) && isset($this->cache[$key][$index]);
    }