Browse files

RANDOMKEY needs no arguments

  • Loading branch information...
1 parent de3cecd commit 6a984c95c0185f539f435260843950426c16625c Fernando 'Brujo' Benavides committed Dec 7, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/erldis.erl
View
4 src/erldis.erl
@@ -39,8 +39,8 @@ keys(Client, Pattern) ->
% NOTE: with binary-list conversion, timer:tc says 26000-30000 microseconds
erldis_client:scall(Client, [<<"keys">>, Pattern]).
-randomkey(Client, Key) ->
- erldis_client:sr_scall(Client, [<<"randomkey">>, Key]).
+randomkey(Client) ->
+ erldis_client:sr_scall(Client, [<<"randomkey">>]).
rename(Client, OldKey, NewKey) ->
erldis_client:sr_scall(Client, [<<"rename">>, OldKey, NewKey]).

0 comments on commit 6a984c9

Please sign in to comment.