Crate redis_rocksdb

Source

Structs§

BitObject
这个对应redis中的hash, 字段数据量建议在2048个以内,在遍历数据时,性能比[ObjectImp]好 使用一个大的数组把key的值存下,以方便访问全部的field,与[ObjectImp]相比需要维护一个数组,当field数量不多时,性能比较好 所有的key以数组方式存入,有先后关系。如果删除其中的一个field其后的数据,会平移。
MaxHeap
字段名使用 max binary head存放
MetaKey
MinHeap
字段名使用 min binary head存放
ObjectImp
直接使用key + field的方式,把value的值存入数据库中 当获取所有field或值时需要使用 prefix_iterator,这时性能不如 crate::BitObject
RedisRocksdb
WrapRocksDb
WrapTransaction
WrapTransactionDB

Enums§

Direction
Enum for the LEFT | RIGHT args used by some commands
RrError

Constants§

BYTES_LEN_TYPE

Traits§

BPTree
b+ tree(binary plus tree)
Bytes
EndianScalar
see Trait for values that must be stored in little-endian byte order, but might be represented in memory as big-endian. Every type that implements EndianScalar is a valid FlatBuffers scalar value.
Heap
二叉堆(binary heap)
KeyValue
Object
可以存储大量的数据,在遍历数据时,性能不如redis hash
RedisList
SortedSet
可以存储大量的数据,在遍历数据时,性能不如redis hash
Stack
key+index
WrapDb
是对db的抽象,减少在事务与不带事务时,重复的代码,如果想要更好的性能,那么可以不使用这层实现

Functions§

read_int
read_int_ptr
read_len_type
to_little_endian_array
write_int
write_int_ptr
write_len_type

Type Aliases§

BytesType
类型:表示成员或字段名字的长度bytes
LenType
类型:表示成员或字段的总个数