Skip to content

Commit

Permalink
Remove explicit 'inputKeysNum' arguments (#823)
Browse files Browse the repository at this point in the history
  • Loading branch information
drmarjanovic authored Apr 15, 2023
1 parent 9283ff9 commit 640b9a2
Show file tree
Hide file tree
Showing 4 changed files with 143 additions and 182 deletions.
5 changes: 5 additions & 0 deletions modules/redis/src/main/scala/zio/redis/Input.scala
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,11 @@ object Input {
RespCommand(RespCommandArgument.Literal(data.asString))
}

case object IntInput extends Input[Int] {
def encode(data: Int): RespCommand =
RespCommand(RespCommandArgument.Value(data.toString))
}

case object KeepTtlInput extends Input[KeepTtl] {
def encode(data: KeepTtl): RespCommand =
RespCommand(RespCommandArgument.Literal(data.asString))
Expand Down
Loading

0 comments on commit 640b9a2

Please sign in to comment.