RocksDB::LRUCache - rocksdb::Cache object
use RocksDB; my $capacity = 1024 * 1024; my $cache = RocksDB::LRUCache->new($capacity); my $db = RocksDB->new('/path/to/db', { block_cache => $cache });
RocksDB::LRUCache is a rocksdb::Cache object.
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.
RocksDB, RocksDB::Cache
Jiro Nishiguchi <jiro@cpan.org>
To install RocksDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RocksDB
CPAN shell
perl -MCPAN -e shell install RocksDB
For more information on module installation, please visit the detailed CPAN module installation guide.