+ upgrade to Spring 3.1 RC1

This commit is contained in:
Costin Leau
2011-10-12 16:33:24 +03:00
parent e018f55ec4
commit 7018ecc61e
4 changed files with 25 additions and 25 deletions

View File

@@ -20,7 +20,7 @@ import java.util.Arrays;
import java.util.Set;
import org.springframework.cache.Cache;
import org.springframework.cache.interceptor.DefaultValueWrapper;
import org.springframework.cache.support.ValueWrapperImpl;
import org.springframework.dao.DataAccessException;
import org.springframework.data.redis.connection.RedisConnection;
import org.springframework.data.redis.core.RedisCallback;
@@ -90,7 +90,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 DefaultValueWrapper(template.getValueSerializer().deserialize(bs)));
return (bs == null ? null : new ValueWrapperImpl(template.getValueSerializer().deserialize(bs)));
}
}, true);
}