X-Git-Url: http://git.rot13.org/?p=perl-Redis.git;a=blobdiff_plain;f=lib%2FRedis.pm;h=36416c435e665d09b060d439937509fadcc9db38;hp=65137520661e3d1d60ab110ab03bd9f70f3b2fec;hb=3957dcfecc1628ff65b686a2444765c4ebeef05b;hpb=01860f4554d3bba7c67c0c65e28023db4f90ca72 diff --git a/lib/Redis.pm b/lib/Redis.pm index 6513752..36416c4 100644 --- a/lib/Redis.pm +++ b/lib/Redis.pm @@ -186,7 +186,18 @@ sub set { sub get { my $self = shift; - $self->_sock_result_bulk('GET', @_); + $self->_sock_result_bulk('GET',@_); +} + +=head2 mget + + my @values = $r->get( 'foo', 'bar', 'baz' ); + +=cut + +sub mget { + my $self = shift; + $self->_sock_result_bulk_list('MGET',@_); } =head2 incr