Description
redis4cats is a Scala Redis client built on Cats Effect, Fs2 and the async Java client Lettuce. You create a client, run it in an IO program and call Redis commands such as set, get and setNx in a for-comprehension. The project offers an Effects API for normal commands and a Streams API built on fs2. The site also covers codecs, transactions and pipelining. The library is a thin wrapper over Lettuce, so each series follows a specific Lettuce major version. The 1.x series is built on Cats Effect 3, and the 0.x series is built on Cats Effect 2. Dependencies are added to build.sbt, with redis4cats-effects for the Effects API and a separate artifact for the Streams API. Logging with log4cats is supported. The site says the API is quite stable and heavily used in production, though binary compatibility is not guaranteed across versions. The code is public on GitHub.…
Highlights
- Redis commands in Cats Effect IO programs
- Streams API built on fs2
- Codecs, transactions and pipelining
- Built on Lettuce and log4cats support
- Cats Effect 3 series for version 1.x
Ratings & Reviews
No ratings yet
Be the first to rate Redis4Cats.
People also visit
Redis4Cats FAQ
What is redis4cats?
A Scala client for Redis that runs its commands in Cats Effect and streams through fs2.
Which Cats Effect version do I need?
The 1.x series uses Cats Effect 3, and the 0.x series uses Cats Effect 2.
How do I add it to my project?
Add the redis4cats-effects dependency to build.sbt for the Effects API, or the Streams artifact for the Streams API.
Is it stable?
The site says the API is quite stable and heavily used in production, but binary compatibility is not guaranteed across versions.
What are the best Redis4Cats alternatives?
Popular alternatives to Redis4Cats include Fs2 Kafka. See all Redis4Cats alternatives






