The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

RocksDB::LRUCache - rocksdb::Cache object

SYNOPSIS

  use RocksDB;

  my $capacity = 1024 * 1024;
  my $cache = RocksDB::LRUCache->new($capacity);
  my $db = RocksDB->new('/path/to/db', { block_cache => $cache });

DESCRIPTION

RocksDB::LRUCache is a rocksdb::Cache object.

CONSTRUCTOR

RocksDB::LRUCache->new($capacity :Int) :RocksDB::LRUCache

Create a new cache with a fixed size capacity. This implementation of Cache uses a least-recently-used eviction policy.

SEE ALSO

RocksDB, RocksDB::Cache

AUTHOR

Jiro Nishiguchi <jiro@cpan.org>