public function truncate($start, $end)
    {
        $result = $this->_getRediskaOn()->truncateList($this->getName(), $start, $end);

        if (!is_null($this->getExpire()) && $result) {
            $this->expire($this->getExpire(), $this->isExpireTimestamp());
        }

        return $result;
    }
public function truncate($start, $end)
    {
        $result = $this->_getRediskaOn()->truncateList($this->getName(), $start, $end);

        if (!is_null($this->getExpire()) && $result) {
            $this->expire($this->getExpire(), $this->isExpireTimestamp());
        }

        return $result;
    }
public function truncate ( $ start , $ end ) { $ result = $ this -> _getRediskaOn ( ) -> truncateList ( $ this -> getName ( ) , $ start , $ end ) ; if ( ! is_null ( $ this -> getExpire ( ) ) && $ result ) { $ this -> expire ( $ this -> getExpire ( ) , $ this -> isExpireTimestamp ( ) ) ; } return $ result ; }
Trim the list at key to the specified range of elements

@param integer $start Start index
@param integer $end End index
@return boolean
Trim the list at key to the specified range of elements