Esempio n. 1
0
 public function count()
 {
     if ($this->_storage instanceof RWMutexAwareInterface) {
         $this->_storage->RLock();
     }
     $count = $this->_storage->count($_SERVER['SERVER_NAME']);
     if ($this->_storage instanceof RWMutexAwareInterface) {
         $this->_storage->RUnlock();
     }
     return $count;
 }
Esempio n. 2
0
 /**
  * Count number of inserts in storage
  * @return mixed
  */
 public function count()
 {
     return $this->onlineUsers->count();
 }