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

Store and retrieve objects from redis?

I have several Mountain objects which have id and name. I stored these objects like that HMSET Mountain:1 id "1" name "Mo1" HMSET Mountain:2 id "2" name "Mo2" HMSET Mountain:3 id "3" name "Mo2" How can I get all Mountain Objects? Or are there any…
maskapsiz
  • 244
  • 5
  • 23
0
votes
2 answers

Redis not running in the background

I have just installed Redis on a remote Ubuntu machine (VM configurations) and used port forwarding to be able to access it from a remote client. Redis is working correctly on the machine itself : I am able to get response for 'ping' commands sent…
BajajG
  • 2,134
  • 2
  • 25
  • 32
0
votes
1 answer

Redis Benchmarking from java

I'm trying to compare the performance of NoSql databases Redis,Cassandra and MongoDB. i'm using jedis in java to create and read records.Now I'm inserting 10 Million records and use java System.currentTimeMillis() to get the time before and after…
Fazil Uruniyengal
  • 286
  • 1
  • 3
  • 15
0
votes
1 answer

Making a Connection in Jedis

Whats the use of connect() method in jedis ? I can insert and fetch key value pairs by just creating an object,even without calling the connect() method on the object. jedis = new Jedis("localhost", 6379);
Fazil Uruniyengal
  • 286
  • 1
  • 3
  • 15
0
votes
1 answer

How does ShardedJedis distribute data among redis nodes?

I am trying to figure out what exactly is the logic behind deciding redis node to store data when using ShardedJedis class in Jedis. What exactly is the algorithm used for distributing data among nodes?
0
votes
0 answers

Java Reflection: Set and Get from String or ByteArray to Field

I have my Field and a byte array or a String (I can return either from Jedis) What would be a good way of either Serializing/Deserializing to and from this field into a human readable value? I know there's a way... I'm just not seeing it. The other…
Thomas Nairn
  • 1,186
  • 8
  • 34
0
votes
1 answer

Connections keep piling up in Redis from Java client

I have Redis installed on my machine and I am using a Jedis client within my Spring app to write some data onto Redis. For certain reasons, with each write, the number of connections to Redis keep piling up until I get a…
abbasdgr8
  • 555
  • 1
  • 5
  • 15
0
votes
1 answer

How to access multiple remote redis with JedisConnectionFactory?

I made a manager/Service Server system. Manager server collects data from database and send that data to multiple Service servers. My code works nice when I have only 1 server. My configuration like below.(root-context.xml)
Juneyoung Oh
  • 7,318
  • 16
  • 73
  • 121
0
votes
1 answer

Java queuing mechanism

I am importing a large amount of data from files to a Redis database. So I have two steps to perform: parsing the files, then importing them using jedis. I want to parse and import at the same times using one thread for each task to speed up the…
MasterScrat
  • 7,090
  • 14
  • 48
  • 80
0
votes
2 answers

error in Using netty with jedis

I'm using netty and redis (jedis client), and in each request the query method of redisdb call, when i test it in Apache benchmarking with this command ab -c 10 -n 10 localhost:2080 the below error occurs. Mar 10, 2014 3:29:48 PM…
Saleh
  • 2,982
  • 5
  • 34
  • 59
0
votes
0 answers

pool = new JedisPool(new JedisPoolConfig(), IPADDRESS) is not working

My question is pretty explanatory, I'm not able to access a remote jedis server using the above statement.Here is a bit detail abt the code: static JedisPool pool; private Jedis jedis; static { pool = new JedisPool(new JedisPoolConfig(),…
aroyc
  • 890
  • 2
  • 13
  • 26
0
votes
1 answer

Could not get a resource from the pool JedisConnectionException

Hi All I am trying to set up redis server using java. My Redis server is linux server with ulimit unlimited. Here is my spring bean which creates connection public class JedisService implements IJedisService, InitializingBean, DisposableBean{ …
viren
  • 1,073
  • 1
  • 17
  • 41
0
votes
1 answer

Include repository within repository github

I have recently been experimenting with Redis and was planning on including it in a Java project of mine and was wondering if there is a way of "including" someone else's repo within yours so I could "include" jedis within my project without it…
user2248702
  • 2,741
  • 7
  • 41
  • 69
0
votes
1 answer

What's the difference between resque:failed and resque:stat:failed keys?

Also, what are the best practices around managing the Resque built in "management structures" (like the ones in the title)? Should I ever be clearing them with jedis.del(String key) or something similar?
jlewkovich
  • 2,725
  • 2
  • 35
  • 49
0
votes
0 answers

Handling Large Dataset with Redis

I am working on crawler application and I am using Redis for holding queue of pending urs which my crawler is going to crawl. There are multiple nodes which running they fetch URL to crawl from Redis DB and after crawling put new URL (which found…
Alex
  • 1,406
  • 2
  • 18
  • 33