+ update to Spring Framework 3.1 RC2

This commit is contained in:
Costin Leau
2011-12-06 12:10:56 +02:00
parent 72af744a1d
commit 5c41fb47ca
3 changed files with 13 additions and 13 deletions

View File

@@ -20,7 +20,7 @@ import java.util.Arrays;
import java.util.Set;
import org.springframework.cache.Cache;
import org.springframework.cache.support.ValueWrapperImpl;
import org.springframework.cache.support.SimpleValueWrapper;
import org.springframework.dao.DataAccessException;
import org.springframework.data.redis.connection.RedisConnection;
import org.springframework.data.redis.core.RedisCallback;
@@ -88,7 +88,7 @@ class RedisCache implements Cache {
public ValueWrapper doInRedis(RedisConnection connection) throws DataAccessException {
waitForLock(connection);
byte[] bs = connection.get(computeKey(key));
return (bs == null ? null : new ValueWrapperImpl(template.getValueSerializer().deserialize(bs)));
return (bs == null ? null : new SimpleValueWrapper(template.getValueSerializer().deserialize(bs)));
}
}, true);
}