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

delete() public method

Deletes a translation for given key (No existence check!)
public delete ( string $translateKey ) : boolean
$translateKey string
return boolean
    public function delete($translateKey)
    {
        $index = $this->getLongKey($translateKey);
        $key = $this->getShortKey($index);
        $nbResult = $this->redis->del($key);
        unset($this->cache[$key]);
        return $nbResult > 0;
    }