ai.evolv.DefaultAllocationStore Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ascend-sdk Show documentation
Show all versions of ascend-sdk Show documentation
SDK to interact with the Ascend product.
package ai.evolv;
import com.google.gson.JsonArray;
public class DefaultAllocationStore implements AscendAllocationStore {
private LruCache cache;
DefaultAllocationStore(int size) {
this.cache = new LruCache(size);
}
@Override
public JsonArray get(String uid) {
return cache.getEntry(uid);
}
@Override
public void put(String uid, JsonArray allocations) {
cache.putEntry(uid, allocations);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy