]> git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/src/test/java/org/rocksdb/ClockCacheTest.java
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / rocksdb / java / src / test / java / org / rocksdb / ClockCacheTest.java
1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2 // This source code is licensed under the BSD-style license found in the
3 // LICENSE file in the root directory of this source tree. An additional grant
4 // of patent rights can be found in the PATENTS file in the same directory.
5
6 package org.rocksdb;
7
8 import org.junit.Test;
9
10 public class ClockCacheTest {
11
12 static {
13 RocksDB.loadLibrary();
14 }
15
16 @Test
17 public void newClockCache() {
18 final long capacity = 1000;
19 final int numShardBits = 16;
20 final boolean strictCapacityLimit = true;
21 try(final Cache clockCache = new ClockCache(capacity,
22 numShardBits, strictCapacityLimit)) {
23 //no op
24 }
25 }
26 }