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/
rocksdb+file:///var/data/planet/?secure=true
(trie keys are hashed)
The following query string parameters are supported:
block-cache | Corresponds to
RocksDBStore(String, Int32, Int32, Nullable<UInt64>, Nullable<UInt64>, Nullable<UInt64>, Int32, Int32, Int32)'s
blockCacheSize parameter. 512 by default. |
tx-cache | Corresponds to
RocksDBStore(String, Int32, Int32, Nullable<UInt64>, Nullable<UInt64>, Nullable<UInt64>, Int32, Int32, Int32)'s
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
RocksDBStore(String, Int32, Int32, Nullable<UInt64>, Nullable<UInt64>, Nullable<UInt64>, Int32, Int32, Int32)'s
txEpochUnitSeconds parameter. 86400 by default. |
block-epoch-unit-secs | Corresponds to
RocksDBStore(String, Int32, Int32, Nullable<UInt64>, Nullable<UInt64>, Nullable<UInt64>, Int32, Int32, Int32)'s
blockEpochUnitSeconds parameter. 86400 by default. |
connection-cache | Corresponds to
RocksDBStore(String, Int32, Int32, Nullable<UInt64>, Nullable<UInt64>, Nullable<UInt64>, Int32, Int32, Int32)'s
dbConnectionCacheSize parameter. 100 by default. |
states-dir | Corresponds to RocksDBKeyValueStore(String)'s path
parameter. It is relative to the URI path, and defaults to states . |
secure | true or false (default). Corresponds to
secure parameter. |
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/
rocksdb+file:///var/data/planet/?secure=true
(trie keys are hashed)
The following query string parameters are supported:
block-cache | Corresponds to
RocksDBStore(String, Int32, Int32, Nullable<UInt64>, Nullable<UInt64>, Nullable<UInt64>, Int32, Int32, Int32)'s
blockCacheSize parameter. 512 by default. |
tx-cache | Corresponds to
RocksDBStore(String, Int32, Int32, Nullable<UInt64>, Nullable<UInt64>, Nullable<UInt64>, Int32, Int32, Int32)'s
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
RocksDBStore(String, Int32, Int32, Nullable<UInt64>, Nullable<UInt64>, Nullable<UInt64>, Int32, Int32, Int32)'s
txEpochUnitSeconds parameter. 86400 by default. |
block-epoch-unit-secs | Corresponds to
RocksDBStore(String, Int32, Int32, Nullable<UInt64>, Nullable<UInt64>, Nullable<UInt64>, Int32, Int32, Int32)'s
blockEpochUnitSeconds parameter. 86400 by default. |
connection-cache | Corresponds to
RocksDBStore(String, Int32, Int32, Nullable<UInt64>, Nullable<UInt64>, Nullable<UInt64>, Int32, Int32, Int32)'s
dbConnectionCacheSize parameter. 100 by default. |
states-dir | Corresponds to RocksDBKeyValueStore(String)'s path
parameter. It is relative to the URI path, and defaults to states . |
secure | true or false (default). Corresponds to
secure
parameter. |