From 7e3986b8bdeb7ffce945f2d7c5600b49c2f5e71a Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Thu, 14 Mar 2024 14:49:14 +0100 Subject: [PATCH] Fix reference code example to use values required for the example. Closes #2869 --- src/main/antora/modules/ROOT/pages/redis/redis-cache.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 fbf61db5a..c965f352a 100644 --- a/src/main/antora/modules/ROOT/pages/redis/redis-cache.adoc +++ b/src/main/antora/modules/ROOT/pages/redis/redis-cache.adoc @@ -234,13 +234,13 @@ Of course, you can combine both global and per-cache configuration using: ---- RedisCacheConfiguration predefined = RedisCacheConfiguration.defaultCacheConfig() - .entryTtl(MyCustomTtlFunction.INSTANCE)); + .entryTtl(MyCustomTtlFunction.INSTANCE); -Map initialCaches = Collections.singletonMap("predefined",predefined); +Map initialCaches = Collections.singletonMap("predefined", predefined); RedisCacheManager cacheManager = RedisCacheManager.builder(redisConnectionFactory) .cacheDefaults(fiveMinuteTtlExpirationDefaults) - .withInitialCacheConfiguration() + .withInitialCacheConfigurations(initialCaches) .build(); ----