Skip to main content

Crate fedimint_rocksdb

Crate fedimint_rocksdb 

Source

Re-exportsยง

pub use rocksdb;

Modulesยง

envs
rocks_db_open_blocking_builder ๐Ÿ”’
Tools for manipulating the type state of RocksDbOpenBlockingBuilder.

Structsยง

RocksDb
RocksDbOpenBlockingBuilder
Use builder syntax to set the inputs and finish with open_blocking().
RocksDbReadOnly
RocksDbReadOnlyTransaction
RocksDbTransaction

Constantsยง

DEFAULT_BLOCK_CACHE_SIZE ๐Ÿ”’
Default block cache size: 2 MiB (RocksDB default is 8 MiB). Index/filter blocks are placed in this cache too (set_cache_index_and_filter_blocks), so everything is bounded. We only need correctness, not throughput, so we keep this minimal.
DEFAULT_MAX_OPEN_FILES ๐Ÿ”’
Default max open files: 256 (RocksDB default is unlimited which consumes memory for each open file handle and associated metadata)
DEFAULT_WRITE_BUFFER_SIZE ๐Ÿ”’
Default write buffer size: 2 MiB (RocksDB default is 64 MiB)

Functionsยง

convert_to_async_stream ๐Ÿ”’
get_default_options ๐Ÿ”’
is_power_of_two ๐Ÿ”’
next_prefix ๐Ÿ”’
parse_env_size ๐Ÿ”’