don't return the cache id for servers

This commit is contained in:
Lee 2024-04-10 08:21:52 +01:00
parent 2f09b55f33
commit 3a3a2e223f

@ -1,6 +1,7 @@
package cc.fascinated.model.cache; package cc.fascinated.model.cache;
import cc.fascinated.model.server.MinecraftServer; import cc.fascinated.model.server.MinecraftServer;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.*; import lombok.*;
import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash; import org.springframework.data.redis.core.RedisHash;
@ -16,12 +17,14 @@ public final class CachedMinecraftServer implements Serializable {
/** /**
* The id of this cached server. * The id of this cached server.
*/ */
@Id @NonNull private transient final String id; @Id @NonNull @JsonIgnore
private final String id;
/** /**
* The cached server. * The cached server.
*/ */
@NonNull private final MinecraftServer value; @NonNull
private final MinecraftServer value;
/** /**
* The unix timestamp of when this * The unix timestamp of when this