projects
/
perl-Redis.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
comment debug output
[perl-Redis.git]
/
lib
/
Redis.pm
diff --git
a/lib/Redis.pm
b/lib/Redis.pm
index
4fc7eea
..
6ead5de
100644
(file)
--- a/
lib/Redis.pm
+++ b/
lib/Redis.pm
@@
-538,6
+538,8
@@
sub flushall {
=head1 Sorting
=head1 Sorting
+=head2 sort
+
$r->sort("key BY pattern LIMIT start end GET pattern ASC|DESC ALPHA');
=cut
$r->sort("key BY pattern LIMIT start end GET pattern ASC|DESC ALPHA');
=cut
@@
-547,6
+549,19
@@
sub sort {
$self->_sock_result_bulk_list( "SORT $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<< <dpavlin at rot13.org> >>
=head1 AUTHOR
Dobrica Pavlinusic, C<< <dpavlin at rot13.org> >>