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 authored and holly-cummins committed Feb 8, 2024
1 parent 3272b25 commit d4ee367
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 d4ee367

Please sign in to comment.