Skip to content

Commit

Permalink
Merge pull request #37640 from cescoffier/redis-cache-expire-after-write
Browse files Browse the repository at this point in the history
Handle expireAfterWrite properly in the redis-cache config
  • Loading branch information
geoand authored Dec 11, 2023
2 parents 5d4c70a + 26da86d commit 8cfaa73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static Set<RedisCacheInfo> build(Set<String> cacheNames, RedisCachesBuild

if (namedRuntimeConfig != null && namedRuntimeConfig.expireAfterWrite.isPresent()) {
cacheInfo.expireAfterWrite = namedRuntimeConfig.expireAfterWrite;
} else if (defaultRuntimeConfig.expireAfterAccess.isPresent()) {
} else if (defaultRuntimeConfig.expireAfterWrite.isPresent()) {
cacheInfo.expireAfterWrite = defaultRuntimeConfig.expireAfterWrite;
}

Expand Down

0 comments on commit 8cfaa73

Please sign in to comment.