/[Redis.pre-github]/lib/Redis.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/Redis.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 26 by dpavlin, Sun Mar 22 13:37:49 2009 UTC revision 27 by dpavlin, Sun Mar 22 13:44:19 2009 UTC
# Line 362  sub lset { Line 362  sub lset {
362    
363  =head2 lrem  =head2 lrem
364    
365    $r->lrem( $key, $count, $value );    my $modified_count = $r->lrem( $key, $count, $value );
366    
367  =cut  =cut
368    
# Line 371  sub lrem { Line 371  sub lrem {
371          $self->_sock_send_bulk_number( 'LREM', $key, $count, $value );          $self->_sock_send_bulk_number( 'LREM', $key, $count, $value );
372  }  }
373    
374    =head2 lpop
375    
376      my $value = $r->lpop( $key );
377    
378    =cut
379    
380    sub lpop {
381            my ( $self, $key ) = @_;
382            $self->_sock_result_bulk( 'lpop', $key );
383    }
384    
385    =head2 rpop
386    
387      my $value = $r->rpop( $key );
388    
389    =cut
390    
391    sub rpop {
392            my ( $self, $key ) = @_;
393            $self->_sock_result_bulk( 'rpop', $key );
394    }
395    
396  =head1 AUTHOR  =head1 AUTHOR
397    
398  Dobrica Pavlinusic, C<< <dpavlin at rot13.org> >>  Dobrica Pavlinusic, C<< <dpavlin at rot13.org> >>

Legend:
Removed from v.26  
changed lines
  Added in v.27

  ViewVC Help
Powered by ViewVC 1.1.26