Namespace Libplanet.RocksDBStore
Classes
RocksDBKeyValueStore
The RocksDB IKeyValueStore implementation. This stores data in the RocksDB.
RocksDBStore and RocksDBKeyValueStore-backed
rocksdb+file:
scheme
using
rocksdb+file:///var/data/planet/
rocksdb+file:///c:/Users/john/AppData/Local/planet/
The following query string parameters are supported:
block-cache | Corresponds to
blockCacheSize parameter. 512 by default. |
tx-cache | Corresponds to
txCacheSize parameter. 1024 by default. |
max-total-wal-size | Corresponds to RocksDB's max_total_wal_size option. |
keep-log-file-num | Corresponds to RocksDB's keep_log_file_num option. |
max_log_file_size | Corresponds to RocksDB's max_log_file_size option. |
tx-epoch-unit-secs | Corresponds to
txEpochUnitSeconds parameter. 86400 by default. |
block-epoch-unit-secs | Corresponds to
blockEpochUnitSeconds parameter. 86400 by default. |
connection-cache | Corresponds to
dbConnectionCacheSize parameter. 100 by default. |
states-dir | Corresponds to path
parameter. It is relative to the URI path, and defaults to states . |
RocksDBStore
The RocksDB IStore implementation, which is more production-ready than DefaultStore. This stores data in the RocksDB with multiple partitions under the hood.
RocksDBStore and RocksDBKeyValueStore-backed
TrieStateStore can be instantiated from a URI with rocksdb+file:
scheme
using
rocksdb+file:///var/data/planet/
rocksdb+file:///c:/Users/john/AppData/Local/planet/
The following query string parameters are supported:
block-cache | Corresponds to
blockCacheSize parameter. 512 by default. |
tx-cache | Corresponds to
txCacheSize parameter. 1024 by default. |
max-total-wal-size | Corresponds to RocksDB's max_total_wal_size option. |
keep-log-file-num | Corresponds to RocksDB's keep_log_file_num option. |
max_log_file_size | Corresponds to RocksDB's max_log_file_size option. |
tx-epoch-unit-secs | Corresponds to
txEpochUnitSeconds parameter. 86400 by default. |
block-epoch-unit-secs | Corresponds to
blockEpochUnitSeconds parameter. 86400 by default. |
connection-cache | Corresponds to
dbConnectionCacheSize parameter. 100 by default. |
states-dir | Corresponds to path
parameter. It is relative to the URI path, and defaults to states . |
Enums
RocksDBInstanceType
Represent