2024-04-10 12:41:35 +01:00
|
|
|
package cc.fascinated.model.cache;
|
|
|
|
|
2024-04-10 13:24:56 +01:00
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
import lombok.Getter;
|
|
|
|
import lombok.NonNull;
|
|
|
|
import lombok.Setter;
|
2024-04-10 12:41:35 +01:00
|
|
|
import org.springframework.data.annotation.Id;
|
|
|
|
import org.springframework.data.redis.core.RedisHash;
|
|
|
|
|
|
|
|
@Setter
|
|
|
|
@Getter
|
|
|
|
@AllArgsConstructor
|
|
|
|
@RedisHash(value = "player", timeToLive = 60L * 60L) // 1 hour (in seconds)
|
|
|
|
public class CachedPlayerSkinPart {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The ID of the skin part
|
|
|
|
*/
|
|
|
|
@Id @NonNull private String id;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The skin part bytes
|
|
|
|
*/
|
|
|
|
private byte[] bytes;
|
|
|
|
}
|