X-Git-Url: http://git.rot13.org//?a=blobdiff_plain;f=lib%2FRedis.pm;h=6ead5dee4437e18d275233c0a68479752253a46e;hb=776f1916034f293af03303fb23d65c04c62ec352;hp=36416c435e665d09b060d439937509fadcc9db38;hpb=3957dcfecc1628ff65b686a2444765c4ebeef05b;p=perl-Redis.git diff --git a/lib/Redis.pm b/lib/Redis.pm index 36416c4..6ead5de 100644 --- a/lib/Redis.pm +++ b/lib/Redis.pm @@ -536,6 +536,32 @@ sub flushall { $self->_sock_send_ok('flushall'); } +=head1 Sorting + +=head2 sort + + $r->sort("key BY pattern LIMIT start end GET pattern ASC|DESC ALPHA'); + +=cut + +sub sort { + my ( $self, $sort ) = @_; + $self->_sock_result_bulk_list( "SORT $sort" ); +} + +=head1 Persistence control commands + +=head2 save + + $r->save; + +=cut + +sub save { + my $self = shift; + $self->_sock_send_ok( 'SAVE' ); +} + =head1 AUTHOR Dobrica Pavlinusic, C<< >>