public function getValue($name, $default = 0)
    {
        $current = $this->read($name, $default);

        return $this->update($name, $current + 1);
    }
public function getValue($name, $default = 0)
    {
        $current = $this->read($name, $default);

        return $this->update($name, $current + 1);
    }
public function getValue ( $ name , $ default = 0 ) { $ current = $ this -> read ( $ name , $ default ) ; return $ this -> update ( $ name , $ current + 1 ) ; }
Get the next sequence value.

@param string $name
@param int    $default

@return int
Get the next sequence value .