2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-11-23 04:28:01 +00:00

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

View File

@ -262,6 +262,11 @@ public final class RedisBungee extends Plugin {
break; 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(); serverIds = getCurrentServerIds();
uuidTranslator = new UUIDTranslator(this); uuidTranslator = new UUIDTranslator(this);