Skip to content

Cache reference documentation does not use variable #2869

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
crazyjavar opened this issue Mar 13, 2024 · 1 comment
Closed

Cache reference documentation does not use variable #2869

crazyjavar opened this issue Mar 13, 2024 · 1 comment
Assignees
Labels
type: documentation A documentation update

Comments

@crazyjavar
Copy link

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();
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 13, 2024
@mp911de mp911de added type: documentation A documentation update and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 14, 2024
@mp911de mp911de changed the title redis-cache.adoc error occurred Cache reference documentation does not use variable Mar 14, 2024
@mp911de mp911de self-assigned this Mar 14, 2024
@mp911de mp911de added this to the 3.2.4 (2023.1.4) milestone Mar 14, 2024
@mp911de
Copy link
Member

mp911de commented Mar 14, 2024

Thanks for reporting the issue. That's fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation update
Projects
None yet
Development

No branches or pull requests

3 participants