示例#1
0
文件: ArrayPredis.php 项目: gmo/cache
 protected function doRename($key, $target)
 {
     $item = $this->data->remove($key);
     $this->data->set($target, $item);
     if ($this->expiring->containsKey($key)) {
         $time = $this->expiring->remove($key);
         $this->expiring->set($target, $time);
     }
 }
示例#2
0
 /**
  * @inheritdoc
  * @return Job
  */
 public function remove($key)
 {
     return parent::remove($key) ?: new NullJob();
 }
示例#3
0
 /**
  * @inheritdoc
  * @return Tube|null
  */
 public function remove($key)
 {
     return parent::remove($key);
 }