Skip to content

Commit

Permalink
Handle expireAfterWrite properly in the redis-cache config
Browse files Browse the repository at this point in the history
  • Loading branch information
cescoffier committed Dec 10, 2023
1 parent e9af2cb commit 26da86d
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 26da86d

Please sign in to comment.