Crate fbnc

Source
Expand description

§An mixed(mem&disk) cache implementation

Re-exports§

pub use mapx::Mapx;
pub use mapxnk::Mapxnk;
pub use vecx::Vecx;

Modules§

mapx
A disk-storage replacement for the pure in-memory BTreeMap
mapxnk
A disk-storage replacement for the pure in-memory BTreeMap
vecx
A disk-storage replacement for the pure in-memory Vec

Macros§

new_mapx
A helper for creating Mapx.
new_mapx_custom
A helper for creating Mapx.
new_mapxnk
A helper for creating Mapxnk.
new_mapxnk_custom
A helper for creating Mapxnk.
new_vecx
A helper for creating Vecx.
new_vecx_custom
A helper for creating Vecx.
try_twice
Try once more when we fail to open a db.
unique_path
Generate a unique path for each instance.

Structs§

BNC_DATA_LIST

Constants§

BNC_META_NAME
meta of each instance, Vecx/Mapx, etc.

Traits§

NumKey
numberic key

Functions§

clear
Delete all KVs
flush_data
Flush data to disk
set_data_dir
Set ${BNC_DATA_DIR} manually