从 Scala 使用的 Redis 客户端库建议 [英] Redis client library recommendations for use from Scala
问题描述
我正在计划使用 Scala 的 Redis 实例进行一些工作,并且正在寻找有关要使用的客户端库的建议.理想情况下,如果存在一个好的库,我想要一个为 Scala(而不是 Java)设计的库,但如果现在使用 Java 客户端是更好的方法,那并不是世界末日.
I'm planning some work with a Redis instance from Scala and am looking for recommendations on what client library to use. Ideally I'd like a library designed for Scala (rather than Java) if a good one exists, but it's not the end of the world to just use a Java client if that's the better approach right now.
官方客户列表 将 scala-redis 显示为唯一的 Scala 特定选项,但它已经过时了,并且它有许多分叉,并进行了各种改进和增强……所以不清楚使用哪个(如果有的话).
The official client list shows scala-redis as the only Scala-specific option, but it's pretty dated, and it has a number of forks with various improvements and enhancements... so it's not clear which (if any) is the one to use.
当前候选名单:
- 分叉并改进 acrosa 的 scala-redis(链接至 redis.io)
- debasishg 的 scala-redis 分支(大量添加、修复、重构)
- 使用来自 Scala 的 Jedis
- Fork and improve acrosa's scala-redis (linked to from redis.io)
- debasishg's scala-redis fork (lots of additions, fixes, refactorings)
- Use Jedis from Scala
现在倾向于 Jedis,因为它看起来非常活跃且备受推崇,但很好奇其他人在使用 Scala 的 Redis 时选择了什么.
Leaning towards Jedis right now since it seems pretty active and well regarded, but curious what others have chosen when using Redis from Scala.
推荐答案
只是为了结束这个问题:由于 Scala 客户端之间的碎片化,我们最终只使用了 Jedis,到目前为止都很棒.
Just to close off this question: due to the fragmentation amongst Scala clients, we ended up just using Jedis, which has been great so far.
这篇关于从 Scala 使用的 Redis 客户端库建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!