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; }
/** * Count number of inserts in storage * @return mixed */ public function count() { return $this->onlineUsers->count(); }