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
AUTHOR
Jiro Nishiguchi <jiro@cpan.org>