@Test public void offHeapCache() { final String key = "key", value = "value"; final OffHeapByteBufferStore bufferStore = new OffHeapByteBufferStore(10000, 10); final Cache<String, String> cache = CacheBuilder.offHeapCache() .storage(bufferStore) .build(); cache.put(key, value); assertEquals(value, cache.get(key)); assertTrue(cache instanceof OffHeapCache); }
public static OffHeapCacheBuilder offHeapCache() { return new OffHeapCacheBuilder(); }
CacheBuilder { public static OffHeapCacheBuilder offHeapCache() { return new OffHeapCacheBuilder(); } }
CacheBuilder { public static OffHeapCacheBuilder offHeapCache() { return new OffHeapCacheBuilder(); }  }
CacheBuilder { public static OffHeapCacheBuilder offHeapCache() { return new OffHeapCacheBuilder(); }  static HeapCacheBuilder heapCache(); static OffHeapCacheBuilder offHeapCache(); static VersionedOffHeapCacheBuilder versionedOffHeapCache(); static RedisCacheBuilder redisCache(); }
CacheBuilder { public static OffHeapCacheBuilder offHeapCache() { return new OffHeapCacheBuilder(); }  static HeapCacheBuilder heapCache(); static OffHeapCacheBuilder offHeapCache(); static VersionedOffHeapCacheBuilder versionedOffHeapCache(); static RedisCacheBuilder redisCache();  }