Package org.rocksdb

Class Cache

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Direct Known Subclasses:
    ClockCache, LRUCache

    public abstract class Cache
    extends RocksObject
    • Constructor Detail

      • Cache

        protected Cache​(long nativeHandle)
    • Method Detail

      • 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.