@Override public Set<String> autoPurgeDatabase(long until) { Set<String> cleared = source.autoPurgeDatabase(until); for (String name : cleared) { cachedAuths.invalidate(name); } return cleared; }
@Override public List<String> autoPurgeDatabase(long until) { List<String> cleared = source.autoPurgeDatabase(until); if (cleared.size() > 0) { for (PlayerAuth auth : cache.values()) { if (auth.getLastLogin() < until) { cache.remove(auth.getNickname()); } } } return cleared; }