All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ai.evolv.DefaultAllocationStore Maven / Gradle / Ivy

There is a newer version: 0.7.1
Show newest version
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