Jiro Nishiguchi > RocksDB-0.02 > RocksDB::LRUCache

Download:
RocksDB-0.02.tar.gz

Annotate this POD

Website

View/Report Bugs
Source   Latest Release: RocksDB-0.03

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>

syntax highlighting: