Skip to content

Cache reference documentation does not use variable #2869

Closed
@crazyjavar

Description

@crazyjavar

redis-cache.adoc error occurred

One entry is missing on line 243 of the redis-cache.adoc file, as shown in the figure
Snipaste_2024-03-13_23-45-53

Amended as follows:

RedisCacheConfiguration predefined = RedisCacheConfiguration.defaultCacheConfig()
                                         .entryTtl(MyCustomTtlFunction.INSTANCE));

Map<String, RedisCacheConfiguration> initialCaches = Collections.singletonMap("predefined",predefined);

RedisCacheManager cacheManager = RedisCacheManager.builder(redisConnectionFactory)
    .cacheDefaults(fiveMinuteTtlExpirationDefaults)
    ------ add params
    .withInitialCacheConfiguration(initialCaches )
    .build();

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions