Example #1
0
 /**
  * Deletes a translation for given key (No existence check!)
  *
  * @param  string  $translateKey
  * @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;
 }