Redis client for Scala built on top of Cats Effect, Fs2 and Lettuce (formerly Fs2 Redis) -> https://redis4cats.profunktor.dev/
gvolpe on master
Make Final, Add Documentation t… Merge pull request #186 from Ch… (compare)
INFO
command to library. Lettuce returns just String
. What is the best approach in this project? Should I return raw String
or convert it to Map<String, Any>
or create custom structure? INFO
command returns a lot of fields and I'm not sure, whether it's equal on each environment, so I think the best option is Map<String, Any>
Hi. I have some truble understanding the incr
command's interface.
def incr(key: K)(implicit N: Numeric[V]): F[Long]
It expects Numeric evidence for the value but that would mean that I create a Redis connection with a RedisCodec[String, Long]
. Does it make any sens to write such a codec ? Everything is a string in redis and a Long codec would juste write longs as string and read strings as longs.
In this case I feel like the lettuce interface makes more sens
public RedisFuture<Long> incr(K key) {
Am I missing something here ?
F
? Is JRedisURI.create
impure?