Add a warning to run RedisBungeeClean if the UUID cache exceeds 750,000 entries.

While a large UUID cache will not harm RedisBungee functionality, it can be problematic in some setups, so err on the side of caution.
This commit is contained in:
Tux 2015-06-21 22:13:49 -04:00
parent 90612fa98a
commit 59cb27d342
1 changed files with 5 additions and 0 deletions

View File

@ -262,6 +262,11 @@ public final class RedisBungee extends Plugin {
break;
}
}
long uuidCacheSize = tmpRsc.hlen("uuid-cache");
if (uuidCacheSize > 750000) {
getLogger().info("Looks like you have a really big UUID cache! Run https://www.spigotmc.org/resources/redisbungeecleaner.8505/ as soon as possible.");
}
}
serverIds = getCurrentServerIds();
uuidTranslator = new UUIDTranslator(this);