lib/stats.js
function Stats(state) {
  this.state = state;
  this.clear();
  this.onConnect = onConnect.bind(this);
  this.onDisconnect = onDisconnect.bind(this);
  this.onRejected = onRejected.bind(this);
  this.onHit = onHit.bind(this);
  this.onMiss = onMiss.bind(this);
  this.onExpired = onExpired.bind(this);
  this.onExpired = onExpired.bind(this);
  this.addStateListeners();
}
function Stats(state) {
  this.state = state;
  this.clear();
  this.onConnect = onConnect.bind(this);
  this.onDisconnect = onDisconnect.bind(this);
  this.onRejected = onRejected.bind(this);
  this.onHit = onHit.bind(this);
  this.onMiss = onMiss.bind(this);
  this.onExpired = onExpired.bind(this);
  this.onExpired = onExpired.bind(this);
  this.addStateListeners();
}
function Stats ( state ) { this . state = state ; this . clear ( ) ; this . onConnect = onConnect . bind ( this ) ; this . onDisconnect = onDisconnect . bind ( this ) ; this . onRejected = onRejected . bind ( this ) ; this . onHit = onHit . bind ( this ) ; this . onMiss = onMiss . bind ( this ) ; this . onExpired = onExpired . bind ( this ) ; this . onExpired = onExpired . bind ( this ) ; this . addStateListeners ( ) ; }
Encapsulates the server statistics.
Encapsulates the server statistics .