package doc;

import org.mapdb.DB;
import org.mapdb.DBMaker;
import org.mapdb.HTreeMap;

import java.util.Map;


public class htreemap_cache_size_limit {

    public static void main(String[] args) {
        DB db = DBMaker.memoryDB().make();
        //a
        HTreeMap cache = db.hashMapCreate("cache")
                .expireMaxSize(128)
                .makeOrGet();
        //z
    }
}
