ivos
f3a5d62e2b
Issue #158 is fixed: Response.get() returns null if redis returned null (i.e. when using zscore for a non existing member)
2011-12-14 09:18:36 -03:00
Hamza Kaya
b17692ad9a
Pipeline uses wrong response builder for get and getSet
2011-12-13 21:32:09 -03:00
KARASZI István
9d4d11ef46
no need to instantiate the Protocol class that can be static
2011-09-26 15:40:16 +02:00
Eric Hauser
b7ee1fe29a
Merge pull request #189 from vsoskov/jedis
...
---
the exception is returned in the list with the not formatted and formatted values.
Response.get throws the exception.
2011-09-13 23:08:20 -04:00
Eric Hauser
bb806ae066
Merge pull request #154 from ewhauser/jedis
...
---
Per http://groups.google.com/group/jedis_redis/browse_thread/thread/38c94a90d97d429b
2011-09-12 23:13:18 -04:00
Eric Hauser
fe87266a53
Merge pull request #163 from grdmitro/jedis
...
---
Throwing Jedis connection exception on IO error rather than JedisException
2011-09-12 23:07:45 -04:00
Eric Hauser
90dd6a1068
Merge pull request #168 from kevinsawicki/jedis
...
---
This constructor type is available on the ```Jedis``` class and so I added it to ```JedisPool``` for consistency.
Conflicts:
src/main/java/redis/clients/jedis/JedisPool.java
2011-09-12 23:06:24 -04:00
Eric Hauser
7803f5b0df
Merge pull request #170 from kevinsawicki/jedis
...
---
This corrects a [findbugs](http://findbugs.sourceforge.net/ ) warning about how iteration over a key set followed by a call to ```get``` is less efficient than iterating over an entry set.
2011-09-12 22:58:43 -04:00
Eric Hauser
7b24682def
Merge pull request #173 from kevinsawicki/jedis
...
---
This was discovered by running [findbugs](http://findbugs.sourceforge.net/ ) against the Jedis source.
2011-09-12 22:57:16 -04:00
Eric Hauser
e9d8886eb2
Merge pull request #197 from michaelcameron/jedis
...
---
We would like to add the ability to specify the database number on the pool config. We have a number of integration/functional tests in different projects using redis and would like to keep them separate. Setting up a number of redis server instances on different ports would become unwieldy.
The changes add the ability to specify the database number for jedis pools with associated test. I did not add the ability to create a raw jedis connection with a database number because the current implementation of pool creates the jedis object first, then if a password exists it calls the auth command. However, if a password is required, then the select command on the jedis create would fail. I also did not change the shard constructor of jedis to use a database number (which actually does have the constructor of jedis call the auth command).
I could clean up the implementation to always have the jedis constructor call auth if a password exists, then select the database if it is non-zero, and changing sharding info to contain a database config value. Let me know if you want me to make these bigger changes.
2011-09-12 22:53:30 -04:00
Eric Hauser
dba5e2c3d4
Merge pull request #199 from sehugg/jedis
...
---
The subscribe and psubscribe operations call setTimeoutInfinite() since they never return on their own. If the Redis server goes away without closing the connection, the connection can hang indefinitely. Turning on keep-alive will allow the connection to eventually timeout and attempt reconnection.
Note that keepalive must also be enabled on your server, see the Linux HOWTOs on how to do this.
2011-09-12 22:49:12 -04:00
wjw465150
a688c610ae
wjw465150 add socket performance
2011-09-12 22:47:17 -04:00
Jonathan Leibiusky
8a5948a84a
Merge pull request #167 from kevinsawicki/docs
...
Fix @see tags referencing int params that are now long
2011-08-31 05:29:37 -07:00
Jonathan Leibiusky
ef3a532902
Merge pull request #172 from kevinsawicki/docs2
...
Fix broken @see and @link javadoc tags
2011-08-31 05:28:51 -07:00
Michael Cameron
fb33b262e4
Add ability to specify database number in pool config
2011-08-26 16:47:37 -05:00
Justin Sanders
0aab8cb63b
Fixed comments in exists, return values were incorrect
2011-08-16 11:15:07 -04:00
Vladimir Soskov
ec0b58e183
fixing Issue 188 - Pipline.syncAndReturnAll changes
2011-07-31 20:28:51 -07:00
Vladimir Soskov
22d4d3fc53
fixing Issue 188
2011-07-31 19:50:16 -07:00
Kevin Sawicki
3abaf71e0a
Mark inner classes static that don't reference parent class.
2011-06-29 09:34:57 -07:00
Kevin Sawicki
bbb6d666ac
Fix broken @see and @link tags
2011-06-28 10:52:46 -07:00
Kevin Sawicki
e9644a4529
Add JedisPool constructor that takes only host string
2011-06-24 16:44:12 -07:00
Kevin Sawicki
97bbfdc2d6
Iterate over entry set instead of key set.
2011-06-24 16:40:36 -07:00
Kevin Sawicki
234336b58b
Fix @see tags referencing int params that are now long
2011-06-23 16:49:28 -07:00
Dmytro
6e4e1c39f4
Throwing Jedis connection exception on IO error rather than JedisException
2011-06-15 09:46:48 +01:00
Hisham Mardam-Bey
5ad02d083a
Added string argument versions of zrange functions that can use -inf and +inf. Also added byte array versions where missing to make the API more complete.
2011-06-10 17:08:10 -04:00
Hisham Mardam-Bey
a4cef0b48a
Use Double.NEGATIVE/POSITIVE_INFINITY instead of MIN_VALUE and MAX_VALUE to indicate -inf and +inf respectively.
2011-06-10 13:45:57 -04:00
Hisham Mardam-Bey
03d4208318
Added the ability to use Double.MIN_VALUE and Double.MAX_VALUE when calling sorted set methods to represent "-inf" and "+inf" respectively.
2011-06-09 23:24:56 -04:00
Jonathan Leibiusky
cbca00a78e
Merge pull request #153 from ewhauser/master
...
Exception thrown when trying to get a key with pipeline that does not exist
2011-06-03 08:01:50 -07:00
Jonathan Leibiusky
9006178a05
JedisPool timeout was broken. Values <= 0 where treated as -1, where 0 is infinite
2011-06-03 11:48:55 -03:00
Jonathan Leibiusky
8465720d92
remove strange license header
2011-06-03 10:52:49 -03:00
Eric Hauser
8ddba03add
switch SharededJedisPipeline to use return Response and deprecate existing API
2011-06-02 20:25:19 -04:00
Eric Hauser
3b55731b7b
Pipeline commands should not throw an exception when a key is unset
2011-06-02 00:42:56 -04:00
Jonathan Leibiusky
6aa216f8cf
remove watch from transaction
2011-05-30 14:23:20 -03:00
Jonathan Leibiusky
d690833ed6
avoid creating pipeline responses and do it lazy
2011-05-30 13:43:21 -03:00
Jonathan Leibiusky
44c3eef60e
Add binary responses to binary transaction
2011-05-30 11:13:41 -03:00
Jonathan Leibiusky
00712f040d
binary jedis watch command accepts several keys
2011-05-26 12:53:42 -03:00
Jonathan Leibiusky
607d31d96b
On reconnection, select the correct db index
2011-05-15 22:17:21 -03:00
Jonathan Leibiusky
20ee796fa8
hvals response type consistency, was Collection should have been List
2011-05-15 21:59:00 -03:00
Dario Guzik
202d68a21c
optimize
2011-05-15 18:34:15 -03:00
Dario Guzik
56fd098ee2
keep old connection file. DO NOT CROSS BRANCHES AGAIN
2011-05-15 18:24:23 -03:00
Dario Guzik
37587df2b6
MasterSlave consistency and old mode compatibility with shard names
2011-05-15 18:22:34 -03:00
Dario Guzik
9af964e88d
Merge branch 'master' of https://github.com/xetorthio/jedis into Cleaning
2011-05-13 18:03:44 -03:00
Dario Guzik
ace1588501
disconnection
2011-05-13 18:03:38 -03:00
Jonathan Leibiusky
6a78b32a84
Merge pull request #121 from ewhauser/master
...
Fix bug in getbit/setbit and add bit commands to ShardedJedisPipeline
2011-05-11 19:29:37 -07:00
Jonathan Leibiusky
4e15a23e41
list command receive now long parameters to be consistent with return type
2011-05-11 23:23:06 -03:00
Jonathan Leibiusky
b6df4739a0
add Tuple compareTo
2011-05-11 23:09:37 -03:00
Jonathan Leibiusky
f25d70916c
Merge pull request #103 from malomalo/set-compare
...
Tuple compare
2011-05-11 19:01:29 -07:00
Jonathan Leibiusky
6ff9683537
add getDB() which return the db number we are connected to
2011-05-11 22:50:53 -03:00
Jonathan Leibiusky
cd3b50268e
add publish command to Pipeline
2011-05-11 22:29:42 -03:00
Jonathan Leibiusky
86fdf63cc9
add publish to transaction
2011-05-11 19:53:20 -03:00