]>
git.proxmox.com Git - ceph.git/blob - 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.
10 public class ClockCacheTest
{
13 RocksDB
.loadLibrary();
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
)) {