Replace removed RedisCacheConfiguration.getTtl()

Proprietary

Spring Data Redis 4.0 removes RedisCacheConfiguration.getTtl(). Replaces calls with getTtlFunction().getTimeToLive(null, null), which returns the same Duration.

io.moderne.java.spring.boot4.ReplaceRedisCacheConfigurationGetTtl
mod run . --recipe=io.moderne.java.spring.boot4.ReplaceRedisCacheConfigurationGetTtl

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.