rename the package

This commit is contained in:
Lee
2024-04-13 20:44:05 +01:00
parent b14c969013
commit a15326a847
71 changed files with 31 additions and 31 deletions

View File

@ -0,0 +1,41 @@
package cc.fascinated.model.cache;
import cc.fascinated.common.CachedResponse;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;
import java.util.UUID;
/**
* @author Braydon
*/
@Getter
@ToString
@RedisHash(value = "playerName", timeToLive = 60L * 60L * 6) // 6 hours (in seconds)
public class CachedPlayerName extends CachedResponse {
/**
* The id of the player.
*/
@JsonIgnore
@Id private final String id;
/**
* The username of the player.
*/
private final String username;
/**
* The unique id of the player.
*/
private final UUID uniqueId;
public CachedPlayerName(String id, String username, UUID uniqueId) {
super(Cache.defaultCache());
this.id = id;
this.username = username;
this.uniqueId = uniqueId;
}
}