cache = new CacheLongKeyLIRS<>(cc); cc.maxMemory /= 4; cacheChunkRef = new CacheLongKeyLIRS<>(cc); } else { cache = null;
/** * Specifies max allowed size of cache for deserialized offheap rows to avoid deserialization costs for most * frequently used ones. In general performance is better with greater cache size. Must be more than 128 items. * * @param size Cache size in items. */ @GridSpiConfiguration(optional = true) public void setMaxOffheapRowsCacheSize(int size) { A.ensure(size >= 128, "Offheap rows cache size must be not less than 128."); rowCache = new CacheLongKeyLIRS<>(size, 1, 128, 256); }
CacheLongKeyLIRS.Config cc = new CacheLongKeyLIRS.Config(); cc.maxMemory = mb * 1024L * 1024L; cache = new CacheLongKeyLIRS<Page>(cc); cc.maxMemory /= 4; cacheChunkRef = new CacheLongKeyLIRS<PageChildren>(cc);
cc.segmentCount = (Integer) o; cache = new CacheLongKeyLIRS<Page>(cc); cc.maxMemory /= 4; cacheChunkRef = new CacheLongKeyLIRS<PageChildren>(cc);
cache = new CacheLongKeyLIRS<>(cc); cc.maxMemory /= 4; cacheChunkRef = new CacheLongKeyLIRS<>(cc); } else { cache = null;