Skip to content

Commit

Permalink
Merge pull request #14 from ChristopherDavenport/changeSetReturnType
Browse files Browse the repository at this point in the history
Change set return type to correctly handle Null byte string response
  • Loading branch information
ChristopherDavenport authored Jan 11, 2021
2 parents c59eccd + fa65e12 commit 8ad9bd7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v7
- uses: olafurpg/setup-scala@v10
with:
java-version: ${{ matrix.java }}
- name: Cache Coursier
Expand All @@ -45,7 +45,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v5
- uses: olafurpg/setup-scala@v10
- name: Cache Coursier
uses: actions/cache@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v1
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v5
- uses: olafurpg/setup-scala@v10
- uses: olafurpg/setup-gpg@v2
- name: Cache Coursier
uses: actions/cache@v1
Expand Down
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 8ad9bd7

Please sign in to comment.