+ upgrade some libraries
+ update changelog DATAREDIS-37
This commit is contained in:
@@ -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();
|
||||
//
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user