+ upgrade some libraries

+ update changelog
DATAREDIS-37
This commit is contained in:
Costin Leau
2011-10-19 16:18:21 +03:00
parent 7018ecc61e
commit 0795f55e4d
7 changed files with 52 additions and 28 deletions

View File

@@ -30,7 +30,10 @@ import org.springframework.data.redis.core.RedisOperations;
/**
* Default implementation for {@link RedisMap}.
*
*
* Note that the current implementation doesn't provide the same locking semantics across all methods.
* In highly concurrent environments, race conditions might appear.
*
* @author Costin Leau
*/
public class DefaultRedisMap<K, V> implements RedisMap<K, V> {
@@ -196,7 +199,7 @@ public class DefaultRedisMap<K, V> implements RedisMap<K, V> {
@Override
public V putIfAbsent(K key, V value) {
throw new UnsupportedOperationException();
return (hashOps.putIfAbsent(key, value) ? null : get(key));
// RedisOperations<String, ?> ops = hashOps.getOperations();
//

View File

@@ -252,7 +252,7 @@ public class RedisProperties extends Properties implements RedisMap<Object, Obje
@Override
public Object putIfAbsent(Object key, Object value) {
throw new UnsupportedOperationException();
return (hashOps.putIfAbsent((String) key, (String) value) ? null : get(key));
}
@Override