We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe6390a commit 5848788Copy full SHA for 5848788
README.md
@@ -19,15 +19,14 @@ import dev.profunktor.redis4cats.effect.Log.Stdout.given
19
object QuickStart extends IOApp.Simple:
20
21
val run: IO[Unit] =
22
- Redis[IO].utf8("redis://localhost").use { redis =>
+ Redis[IO].utf8("redis://localhost").use: redis =>
23
for
24
_ <- redis.set("foo", "123")
25
x <- redis.get("foo")
26
_ <- redis.setNx("foo", "should not happen")
27
y <- redis.get("foo")
28
- _ <- IO(println(x === y)) // true
+ _ <- IO(assert(x === y))
29
yield ()
30
- }
31
```
32
33
The API is quite stable and *heavily used in production*. However, binary compatibility is not guaranteed across versions for now.
0 commit comments