Skip to content

Commit 419c5f7

Browse files
committed
Fix typo in redis cache example code
Signed-off-by: Huỳnh Văn Viên <[email protected]>
1 parent 7c9dd00 commit 419c5f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/main/antora/modules/ROOT/pages/redis/redis-cache.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ If all cache entries should expire after a set duration of time, then simply con
181181
[source,java]
182182
----
183183
RedisCacheConfiguration fiveMinuteTtlExpirationDefaults =
184-
RedisCacheConfiguration.defaultCacheConfig().enableTtl(Duration.ofMinutes(5));
184+
RedisCacheConfiguration.defaultCacheConfig().entryTtl(Duration.ofMinutes(5));
185185
----
186186

187187
However, if the TTL expiration timeout should vary by cache entry, then you must provide a custom implementation of the `RedisCacheWriter.TtlFunction` interface:

0 commit comments

Comments
 (0)