예제 #1
0
 /**
  * check hash table is empty or is not exists.
  * @param $key
  * @return bool
  */
 public function isEmptyHTable($key)
 {
     return 0 === $this->redis->hlen($key);
 }
 /**
  * @param $sid
  *
  * @return bool
  */
 public function has($sid)
 {
     return $this->redis->hlen($this->buildKey($sid) > 0) || $this->findSessionInOracleBySid($sid) !== null;
 }
 /**
  * @param $sid
  *
  * @return bool
  */
 public function has($sid)
 {
     return $this->redis->hlen($this->buildKey($sid) > 0);
 }