Skip to content

Commit e5dfbf1

Browse files
committed
set: raise exception if args not implemented
1 parent 3cd1b94 commit e5dfbf1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/command.ex

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ defmodule Redex.Command do
3030
"PX" -> Time.add(now, delta, :millisecond)
3131
end
3232
Redex.KV.set(key, %{value: value, expires: expires})
33+
_ -> raise @invalid_command_message
3334
end
3435
{:simple_str, "OK"}
3536
end

0 commit comments

Comments
 (0)