This commit is contained in:
Gabriele C
2017-11-02 11:24:17 +01:00
parent 6505538240
commit 273c318e96
22 changed files with 105 additions and 118 deletions
@@ -262,4 +262,18 @@ public class CacheDataSource implements DataSource {
.map(PlayerAuth::getRealName)
.collect(Collectors.toList());
}
@Override
public void invalidateCache(String playerName) {
cachedAuths.invalidate(playerName);
}
@Override
public void refreshCache(String playerName) {
if (cachedAuths.getIfPresent(playerName) == null) {
return;
}
cachedAuths.refresh(playerName);
}
}