Tagged Questions
0
votes
2answers
18 views
Redis Connection Exception when used as a Session manager for Tomcat 7
I have a redis running on a remote server and another web app is able to connect to it withou any issues. I am using redis as a session storage and when I try to connect multiple tomcat instance it ...
0
votes
2answers
53 views
MapReduce read input from Redis
I want to write a Java Program which does the MapReduce Job(e.g. word count). The input is from the Redis. How can I write the Map Class to retrieve one by one from the Redis and do some process in ...
0
votes
2answers
40 views
how to store an image to redis using java / spring
I'm using redis and spring framework on my image upload server. I need to store the images to redis. I have found the following question but it was for python.
how to store a image into redis using ...
0
votes
0answers
16 views
Cleanly shutting down JEDIS BRPOP
I may be running into a limitation with the JEDIS implementation, but here goes.
I have a service that has a runnable for BRPOP. When new items are added to the queue they are taken off and executed ...
1
vote
1answer
93 views
Persistent Scheduled Jobs in Java/Scala with Redis
Akka Scheduler is great but lacks persistence.
Is there any good solution for job scheduling with persistence? Preferably Redis.
0
votes
3answers
62 views
How to store ArrayList in Redis caching?
I am trying to store Arraylist values which coming from DB to Redis Client . But Redis have only Key/Value methods the Key/Value must be String format. How can i store Key as String and Values As ...
2
votes
1answer
81 views
Jedis - When to use returnBrokenResource()
When exactly we should use this method. On JedisConnectionException, JedisDataException or for any JedisException. There is no good API documentation for Jedis to my knowledge.
try {
Jedis jedis ...
0
votes
2answers
153 views
Caching large data sets with hibernate/jpa/memcache?
I'm new to open source stacks and have been playing with hibernate/jpa/jdbc and memcache. I have a large data set per jdbc query and possibly will have a number these large data sets where I ...
1
vote
0answers
61 views
How to read erlang term from redis by using java client?
e.g. I save the tuple T = {k1, v1, k2, v2} to the redis by jedis:
eredis:q(Conn, ["SET", <<"mykey">>, term_to_binary(T)]).
I am trying to use the code below to read this erlang term:
...
2
votes
2answers
206 views
Port forwarding with nginx from java
I'm trying to make a java application which uses redis as a backend. Since Redis is a really fast key-value store which I'd like to use, but redis is made to be used with 1 client so it doesn't have ...
0
votes
0answers
49 views
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 ...
1
vote
1answer
66 views
What's the difference between getBytes and serialize with String?
Just as the title says, I can't differ getBytes[] from serialization mechanism with String. Below is a test between getBytes[] and serialization mechanism:
public void testUTF() {
byte[] ...
0
votes
1answer
96 views
Which one performance better when I use jedis , set(byte[], byte[]) or set(String, String)?
On my laptop, set String directly is always proformace better than set byte[], even with Serialization mechanism when I test with Jedis. I am confused that if String should be serialized when call ...
1
vote
1answer
36 views
Can I put a whole list value once instead of “RightPush” a item many times in redis?
I want to put a whole list to redis, but I find that there is only RightPush method can be used. for which I need to loop through all items in my list and RightPush each item for many times. I think ...
3
votes
1answer
145 views
why it is so slow with 100,000 records when using pipeline in redis?
It is said that pipeline is a better way when many set/get is required in redis, so this is my test code:
public class TestPipeline {
/**
* @param args
*/
public static void ...