spring-framework / org.springframework.cache.caffeine / CaffeineCacheManager / setAllowNullValues

setAllowNullValues

open fun setAllowNullValues(allowNullValues: Boolean): Unit

Specify whether to accept and convert null values for all caches in this cache manager.

Default is "true", despite Caffeine itself not supporting null values. An internal holder object will be used to store user-level nulls.