public function getValue($forceRefresh = false) {
		if ($this->_value === null || $forceRefresh) {
			if ($this->name === null) {
				throw new InvalidConfigException(get_class($this)." requires a name!");
			}
			$this->_value = (int) $this->getConnection()->getSlave()->get($this->name);
		}
		return $this->_value;
	}
public function getValue($forceRefresh = false) {
		if ($this->_value === null || $forceRefresh) {
			if ($this->name === null) {
				throw new InvalidConfigException(get_class($this)." requires a name!");
			}
			$this->_value = (int) $this->getConnection()->getSlave()->get($this->name);
		}
		return $this->_value;
	}
public function getValue ( $ forceRefresh = false ) { if ( $ this -> _value === null || $ forceRefresh ) { if ( $ this -> name === null ) { throw new InvalidConfigException ( get_class ( $ this ) . " requires a name!" ) ; } $ this -> _value = ( int ) $ this -> getConnection ( ) -> getSlave ( ) -> get ( $ this -> name ) ; } return $ this -> _value ; }
Gets the value of the counter
@param boolean $forceRefresh whether to fetch the data from redis again or not
@return integer the value of the counter
Gets the value of the counter