public function getCount () {
        if ($this->_count === null) {
            if ($this->name === null) {
                throw new InvalidConfigException(get_class ($this) . " requires a name!");
            }
            $this->_count = (int)$this->getConnection ()->getSlave ()->lSize ($this->name);
        }
        return $this->_count;
    }
public function getCount () {
        if ($this->_count === null) {
            if ($this->name === null) {
                throw new InvalidConfigException(get_class ($this) . " requires a name!");
            }
            $this->_count = (int)$this->getConnection ()->getSlave ()->lSize ($this->name);
        }
        return $this->_count;
    }
public function getCount ( ) { if ( $ this -> _count === null ) { if ( $ this -> name === null ) { throw new InvalidConfigException ( get_class ( $ this ) . " requires a name!" ) ; } $ this -> _count = ( int ) $ this -> getConnection ( ) -> getSlave ( ) -> lSize ( $ this -> name ) ; } return $ this -> _count ; }
Gets the number of items in the list
@return integer the number of items in the list
@throws InvalidConfigException
Gets the number of items in the list