Skip to content

Commit

Permalink
Change set return type to correctly handle Null byte string response
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherDavenport committed Jan 11, 2021
1 parent c59eccd commit 742c580
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ tags

.bloop
.metals
project/metals.sbt
metals.sbt
.vscode
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ object RedisCommands {
val default = SetOpts(None, None, None, false)
}

def set[F[_]: RedisCtx](key: String, value: String, setOpts: SetOpts = SetOpts.default): F[Status] = {
def set[F[_]: RedisCtx](key: String, value: String, setOpts: SetOpts = SetOpts.default): F[Option[Status]] = {
val ex = setOpts.setSeconds.toList.flatMap(l => List("EX", l.encode))
val px = setOpts.setMilliseconds.toList.flatMap(l => List("PX", l.encode))
val condition = setOpts.setCondition.toList.map(_.encode)
Expand Down

0 comments on commit 742c580

Please sign in to comment.