+ fix subtle bug with diffAndStore on the template caused by incorrect param ordering in the method signature

This commit is contained in:
Costin Leau
2010-11-25 20:17:53 +02:00
parent 3c42df0846
commit 5bacfb57a5

View File

@@ -540,7 +540,7 @@ public class RedisTemplate<K, V> extends RedisAccessor implements RedisOperation
}
@Override
public void diffAndStore(K destKey, final K key, final K... keys) {
public void diffAndStore(final K key, K destKey, final K... keys) {
final byte[][] rawKeys = rawKeys(aggregateKeys(key, keys));
final byte[] rawDestKey = rawKey(destKey);
Object rawValues = execute(new RedisCallback<Object>() {