Skip to content

Commit

Permalink
Expire cache entries after 1 hour
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhyudayaSharma committed Jun 21, 2019
1 parent 4846f65 commit b267c97
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public class RoleMap {
private final Cache<String, RoleMap> matchingRoleMapCache = CacheBuilder.newBuilder()
.softValues()
.maximumSize(Settings.USER_DETAILS_CACHE_MAX_SIZE)
.expireAfterWrite(Settings.USER_DETAILS_CACHE_EXPIRATION_TIME_SEC, TimeUnit.SECONDS)
.expireAfterWrite(1, TimeUnit.HOURS)
.build();

RoleMap() {
Expand Down

0 comments on commit b267c97

Please sign in to comment.