Questions tagged [jedis]

Jedis is a small free client for Redis, written in and for Java.

From its GitHub repository:

Jedis is a Java client for Redis designed for performance and ease of use.

Resources

868 questions
0
votes
1 answer

sbt compile fails due to missing constructor Jedis(java.net.URI) in Jedis 2.1.0

My simple project has a library dependency on Jedis (the Java Redis library): name := "fit001" version := "1.0-SNAPSHOT" libraryDependencies ++= Seq( javaJdbc, javaEbean, cache, "redis.clients" % "jedis" %…
mobileideafactory
  • 1,640
  • 1
  • 22
  • 30
0
votes
1 answer

Problems in installing Jedis (when executing jar file)

I am trying to install Java redis client (Jedis). After downloading some of its packages (for example jedis-2.1.0.jar) from jedis download page and trying to execute it with command: java -jar jedis-2.1.0.jar I got this type of message: no main…
0
votes
1 answer

How can I get the system time of redis server by using Jedis?

Ok.I found the Redis's System service command is TIME,and I can use this command to get the system time of Redis server. But I can't find the same command in the Jedis. In the java, How do I get the system time of the Redis server? And the TIME…
bnPYSse
  • 397
  • 4
  • 12
0
votes
1 answer

Jedis and Johm Exception

I am using Johm to cache and retrieve some data in Redis database. However when the object data I want to pull like using JOhm.getAll(MT.class); for instance I get an exception redis.clients.jedis.exceptions.JedisConnectionException:…
Arsene
  • 1,037
  • 4
  • 20
  • 47
0
votes
1 answer

JedisPool usage with master/slave configuration

This might be something simple but I cannot find answer anywhere (in the codebase included). I have a simple Redis deployment with master + slave. How am I supposed to configure JedisPool to use master for writes and slave/master for…
PaulGPA
  • 1
  • 1
  • 2
0
votes
1 answer

Correct way to handle resources in Spring Jetty and Camel

I've a webapp (Jetty, Spring and Camel). Now I want to connect to a Redis (using Jedis) in my a Camel route. My question where (and when) should I create the Jedis pool and how can I get access to this pool in my Camel routes ? I was thinking about…
Soumya Simanta
  • 11,523
  • 24
  • 106
  • 161
0
votes
1 answer

What is the right approach for an async work queue with results?

I have a REST server on heroku. It will have N-dynos for the REST service and N-dynos for workers. Essentially, I have some long running rest requests. When these come in I want to delegate them to one of the workers and give the client a redirect…
robert_difalco
  • 4,821
  • 4
  • 36
  • 58
0
votes
1 answer

I want to know how to traverse all keys with ShardedJedis in Jedis?

I am writing a message pull center on the sever side with redis, MsgEntity is javabean to represent a message: package com.pipeline; public class MsgEntity { private String msgId; private String content; private int expire ; public String…
znlyj
  • 1,109
  • 3
  • 14
  • 34
0
votes
1 answer

Jedis Pipeline Multi throws ClassCastException

public class JedisPipeline { private static JedisPool pool = new JedisPool(new JedisPoolConfig(), "127.0.0.1", 6379); public static void main(String args[]){ Jedis jedis = pool.getResource(); Pipeline pipeline =…
user1182253
  • 1,079
  • 2
  • 14
  • 26
0
votes
2 answers

Play 1.2.5 and Jedis

Simple question but how do I use Jedis with the play framework? In the dependencies file I added require: ... - jedis -> jedis 2.1.0 Then I run play deps its not downloading the dependency. I'm sure it is something simple but what am I doing…
Derek Organ
  • 8,323
  • 17
  • 56
  • 75
0
votes
1 answer

I want to know, why get a exception of redis.clients.jedis.exceptions.JedisConnectionException?

I used jedis in my java project with one master and slave, once the slave started, it come to this in redis_slave.log: 44764 [2721] 24 Dec 14:07:41.157 * Connecting to MASTER... 44765 [2721] 24 Dec 14:07:41.158 * MASTER <-> SLAVE sync started 44766…
znlyj
  • 1,109
  • 3
  • 14
  • 34
0
votes
3 answers

Are there any companies providing enterprise support for redis?

We have a use case in our organization, for which using redis as in-memory db best fits as solution.But to use it we need to have an enterprise support. I did a lot of search in google but couldn't find one which provides enterprise support. Pls…
Rahul Attuluri
  • 175
  • 2
  • 7
0
votes
1 answer

Jedis with JOhm

As per my understanding, with JOhm and Jedis, one could store/retrieve java class object in/from redis. One question I have is does JOhm also keep the java object in memory so that next time when that object (associated with key) is needed, it is…
sunillp
  • 983
  • 3
  • 13
  • 31
0
votes
0 answers

Pipeline support with BinaryJedis

I am using BinaryJedis to store and retrieve data as I am dealing with raw data. With Jedis pipeline I am able to save data in byte[] form in redis list. But when I try to retrieve this list data (one entry) using "lindex", I dont find any interface…
sunillp
  • 983
  • 3
  • 13
  • 31
-1
votes
1 answer

Timeout in JedisPool definition

While defining a jedisPool object I used the following function and parameters as mentioned here. public JedisPool(final GenericObjectPoolConfig poolConfig, final String host, int port, int timeout, final String password, final int…
Anandakrishnan
  • 347
  • 1
  • 4
  • 18