Skip to content

Commit

Permalink
Added spop command
Browse files Browse the repository at this point in the history
  • Loading branch information
schleyfox committed Mar 28, 2010
1 parent fef214d commit 15c6efa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/erldis.erl
Expand Up @@ -130,6 +130,9 @@ sadd(Client, Key, Member) ->
srem(Client, Key, Member) ->
erldis_client:sr_scall(Client, bulk_cmd([<<"srem">>, Key], Member)).

spop(Client, Key) ->
erldis_client:sr_scall(Client, inline_cmd(<<"spop">>, Key)).

% TODO: test
smove(Client, SrcKey, DstKey, Member) ->
erldis_client:sr_scall(Client, bulk_cmd([<<"smove">>, SrcKey, DstKey], Member)).
Expand Down

0 comments on commit 15c6efa

Please sign in to comment.