don't return the cache id for servers
All checks were successful
ci / deploy (push) Successful in 1m4s
All checks were successful
ci / deploy (push) Successful in 1m4s
This commit is contained in:
parent
2f09b55f33
commit
3a3a2e223f
@ -1,6 +1,7 @@
|
||||
package cc.fascinated.model.cache;
|
||||
|
||||
import cc.fascinated.model.server.MinecraftServer;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import lombok.*;
|
||||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.redis.core.RedisHash;
|
||||
@ -16,12 +17,14 @@ public final class CachedMinecraftServer implements Serializable {
|
||||
/**
|
||||
* The id of this cached server.
|
||||
*/
|
||||
@Id @NonNull private transient final String id;
|
||||
@Id @NonNull @JsonIgnore
|
||||
private final String id;
|
||||
|
||||
/**
|
||||
* The cached server.
|
||||
*/
|
||||
@NonNull private final MinecraftServer value;
|
||||
@NonNull
|
||||
private final MinecraftServer value;
|
||||
|
||||
/**
|
||||
* The unix timestamp of when this
|
||||
|
Loading…
Reference in New Issue
Block a user