Package org.rocksdb

Class Cache

All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
ClockCache, HyperClockCache, LRUCache

public abstract class Cache extends RocksObject
  • Constructor Details

    • Cache

      protected Cache(long nativeHandle)
  • Method Details

    • getUsage

      public long getUsage()
      Returns the memory size for the entries residing in cache.
      Returns:
      cache usage size.
    • getPinnedUsage

      public long getPinnedUsage()
      Returns the memory size for the entries being pinned in cache.
      Returns:
      cache pinned usage size.