Redis TTL is always -1 and can't be configured in a Spring Boot application
I can't configure a TTL for the bucket4j configuration. It is always -1. Has this soemething to do with the weird key serialization, see screenshot? TTL configuration does work with other but not with bucket4j.
@Bean
fun redisCacheManagerBuilderCustomizer(): RedisCacheManagerBuilderCustomizer {
return RedisCacheManagerBuilderCustomizer { builder ->
builder
.withCacheConfiguration(
"bucket4j",...