/**
  * @param Update $update
  * @return bool
  */
 public function exists(Update $update)
 {
     if (!$this->redis->exists($update->getMessage()->getChat()->getId())) {
         return false;
     }
     return true;
 }
示例#2
0
 /**
  * Checks if a given key exists.
  * @param  string  $key
  * @return bool
  */
 public function exists($key)
 {
     return (bool) $this->database->exists($key);
 }