Exemple #1
0
 /**
  * 解锁
  *
  * @param string $key
  */
 public function release($name)
 {
     $key = $this->getKey($name);
     if ($this->redis->ttl($key)) {
         $this->redis->del($key);
     }
 }