Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best Redis library for Java [closed]

Tags:

java

redis

The official Redis homepage lists JDBC-Redis and JRedis. What are the advantages / disadvantages of each ? Are there any other options ?

like image 764
muriloq Avatar asked Jun 15 '10 16:06

muriloq


People also ask

Which Java client is supported by Redis?

RedisGo-Async is a Go client for Redis, both asynchronous and synchronous modes are supported,its API is fully compatible with redigo.

Can I use Redis with Java?

Final Thoughts. The bad news is that Redis isn't compatible with Java immediately. The good news is that when you use a client like Redisson, it's not at all difficult to write Redis-based applications in Java.

Does Jedis support Redis cluster?

Unfortunately, currently you cannot find out in which Redis instance a particular key is saved using Jedis (which is actually supported natively by Redis), so you do not know which of the instances you must perform the transaction operation. If you are interested about this, you can find more information here.

What is Redisson Redis?

Redisson constitutes an in-memory data grid that offers distributed Java objects and services backed by Redis. Its distributed in-memory data model allows sharing of domain objects and services across applications and servers.


2 Answers

You can use also Jedis, which is also in the official Redis clients page. It is compatible with the latest version of Redis.

Update

As of June 2012, Jedis is the Java client library recommended by the Redis official page.

like image 99
xetorthio Avatar answered Sep 19 '22 15:09

xetorthio


I've tried JDBC-Redis, Jredis and Jedis. JDBC-Redis is not good at performance. JRedis and Jedis are both fast, I use Jredis for times but now I prefer Jedis because it's simple, and I can handle network connection errors as I want.

like image 37
secmask Avatar answered Sep 21 '22 15:09

secmask