コード例 #1
0
 /**
  * @param Update $update
  * @return bool
  */
 public function exists(Update $update)
 {
     if (!$this->redis->exists($update->getMessage()->getChat()->getId())) {
         return false;
     }
     return true;
 }
コード例 #2
0
ファイル: Repository.php プロジェクト: ipalaus/redisqueue
 /**
  * Checks if a given key exists.
  * @param  string  $key
  * @return bool
  */
 public function exists($key)
 {
     return (bool) $this->database->exists($key);
 }