From 419c5f7cb8b836a028f341e4fe782f3fffe44119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=E1=BB=B3nh=20V=C4=83n=20Vi=C3=AAn?= Date: Sun, 30 Mar 2025 10:32:09 +0700 Subject: [PATCH] Fix typo in redis cache example code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Huỳnh Văn Viên --- src/main/antora/modules/ROOT/pages/redis/redis-cache.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/antora/modules/ROOT/pages/redis/redis-cache.adoc b/src/main/antora/modules/ROOT/pages/redis/redis-cache.adoc index 4e9f48df54..2035c03846 100644 --- a/src/main/antora/modules/ROOT/pages/redis/redis-cache.adoc +++ b/src/main/antora/modules/ROOT/pages/redis/redis-cache.adoc @@ -181,7 +181,7 @@ If all cache entries should expire after a set duration of time, then simply con [source,java] ---- RedisCacheConfiguration fiveMinuteTtlExpirationDefaults = - RedisCacheConfiguration.defaultCacheConfig().enableTtl(Duration.ofMinutes(5)); + RedisCacheConfiguration.defaultCacheConfig().entryTtl(Duration.ofMinutes(5)); ---- However, if the TTL expiration timeout should vary by cache entry, then you must provide a custom implementation of the `RedisCacheWriter.TtlFunction` interface: