redis_rocksdb 0.3.9

rust implement structure kv(key/value) embedded database, storage by rocksdb
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::RrError;

/// 可以存储大量的数据,在遍历数据时,性能不如redis hash
pub trait SortedSet {
	///
	fn add(&mut self, key: &[u8], score: i64, v: &[u8]) -> Result<i64, RrError>;

	/// 返回集合的数量
	/// 对应redis的zcard
	fn len(&mut self, key: &[u8]) -> Result<Option<i64>, RrError>;
}