Skip to content

Commit

Permalink
RANDOMKEY needs no arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando 'Brujo' Benavides committed Dec 7, 2011
1 parent de3cecd commit 6a984c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/erldis.erl
Expand Up @@ -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]).
Expand Down

0 comments on commit 6a984c9

Please sign in to comment.