Skip to content

Conversation

@diydriller
Copy link

@diydriller diydriller commented Nov 20, 2025

Summary

This PR refactors duplicated TTL computation logic inside DefaultRedisCacheWriter's get method

following expression was previously evaluated twice

  timeToIdleEnabled && withTtl ? ttl : null

What Changed

A new local variable ttlForGet is introduced to compute the TTL once

Closes: #3266

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor duplicated TTL computation in DefaultRedisCacheWriter's get method

2 participants