Skip to content

Commit 7e3986b

Browse files
committed
Fix reference code example to use values required for the example.
Closes spring-projects#2869
1 parent dd901f1 commit 7e3986b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -234,13 +234,13 @@ Of course, you can combine both global and per-cache configuration using:
234234
----
235235
236236
RedisCacheConfiguration predefined = RedisCacheConfiguration.defaultCacheConfig()
237-
.entryTtl(MyCustomTtlFunction.INSTANCE));
237+
.entryTtl(MyCustomTtlFunction.INSTANCE);
238238
239-
Map<String, RedisCacheConfiguration> initialCaches = Collections.singletonMap("predefined",predefined);
239+
Map<String, RedisCacheConfiguration> initialCaches = Collections.singletonMap("predefined", predefined);
240240
241241
RedisCacheManager cacheManager = RedisCacheManager.builder(redisConnectionFactory)
242242
.cacheDefaults(fiveMinuteTtlExpirationDefaults)
243-
.withInitialCacheConfiguration()
243+
.withInitialCacheConfigurations(initialCaches)
244244
.build();
245245
----
246246

0 commit comments

Comments
 (0)