1 // Copyright (c) 2011-present, Facebook, Inc.  All rights reserved.
2 //  This source code is licensed under both the GPLv2 (found in the
3 //  COPYING file in the root directory) and Apache 2.0 License
4 //  (found in the LICENSE.Apache file in the root directory).
5 
6 package org.rocksdb;
7 
8 import org.junit.Test;
9 
10 public class LRUCacheTest {
11 
12   static {
13     RocksDB.loadLibrary();
14   }
15 
16   @Test
17   public void newLRUCache() {
18     final long capacity = 1000;
19     final int numShardBits = 16;
20     final boolean strictCapacityLimit = true;
21     final double highPriPoolRatio = 5;
22     try(final Cache lruCache = new LRUCache(capacity,
23         numShardBits, strictCapacityLimit, highPriPoolRatio)) {
24       //no op
25     }
26   }
27 }
28