public function pop($pushTo = null)
    {
        if ($pushTo instanceof Rediska_Key_List) {
            $pushTo = $pushTo->getName();
        }

        $result = $this->_getRediskaOn()->popFromList($this->getName(), $pushTo);

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

        return $result;
    }
public function pop($pushTo = null)
    {
        if ($pushTo instanceof Rediska_Key_List) {
            $pushTo = $pushTo->getName();
        }

        $result = $this->_getRediskaOn()->popFromList($this->getName(), $pushTo);

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

        return $result;
    }
public function pop ( $ pushTo = null ) { if ( $ pushTo instanceof Rediska_Key_List ) { $ pushTo = $ pushTo -> getName ( ) ; } $ result = $ this -> _getRediskaOn ( ) -> popFromList ( $ this -> getName ( ) , $ pushTo ) ; if ( ! is_null ( $ this -> getExpire ( ) ) && $ result ) { $ this -> expire ( $ this -> getExpire ( ) , $ this -> isExpireTimestamp ( ) ) ; } return $ result ; }
Return and remove the last element of the List

@param string|Rediska_Key_List $pushTo After pop, push value to another list
@return mixed
Return and remove the last element of the List