naver / arcus-spring

ARCUS as a caching provider for the Spring Cache Abstraction
Apache License 2.0
26 stars 16 forks source link

FIX: When cache key already exists in putIfAbsent, convert NullValue to null if allow null values. #89

Closed uhm0311 closed 4 months ago

uhm0311 commented 4 months ago

๐Ÿ”— Related Issue

โŒจ๏ธ What I did

protected Cache.ValueWrapper toValueWrapper(Object storeValue) { return (storeValue != null ? new SimpleValueWrapper(fromStoreValue(storeValue)) : null); }