change the cache for player name to uuid to be 6 hours
Some checks failed
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Has been cancelled

This commit is contained in:
Lee 2024-04-13 14:06:48 +01:00
parent 5381a2887e
commit 52d89a6d9f

@ -13,7 +13,7 @@ import java.util.UUID;
@Getter
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
@ToString
@RedisHash(value = "playerName", timeToLive = 60L * 60L) // 1 hour (in seconds)
@RedisHash(value = "playerName", timeToLive = 60L * 60L * 6) // 6 hours (in seconds)
public final class CachedPlayerName {
/**
* The username of the player.