31 lines
859 B
Java
31 lines
859 B
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* it.unimi.dsi.fastutil.longs.Long2ObjectMap
|
|
* it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap
|
|
* org.jspecify.annotations.Nullable
|
|
*/
|
|
package com.mojang.realmsclient.util;
|
|
|
|
import it.unimi.dsi.fastutil.longs.Long2ObjectMap;
|
|
import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap;
|
|
import org.jspecify.annotations.Nullable;
|
|
|
|
public class UploadTokenCache {
|
|
private static final Long2ObjectMap<String> TOKEN_CACHE = new Long2ObjectOpenHashMap();
|
|
|
|
public static String get(long realmId) {
|
|
return (String)TOKEN_CACHE.get(realmId);
|
|
}
|
|
|
|
public static void invalidate(long realmId) {
|
|
TOKEN_CACHE.remove(realmId);
|
|
}
|
|
|
|
public static void put(long realmId, @Nullable String token) {
|
|
TOKEN_CACHE.put(realmId, (Object)token);
|
|
}
|
|
}
|
|
|