Re-exports§
pub use const::ERR_DIGEST_INVALID_LEN;pub use const::ERR_INCREMENT_NAN_OR_INFINITY;pub use const::ERR_INCREMENT_OVERFLOW;pub use const::ERR_LCS_INSUFFICIENT_MEMORY;pub use const::ERR_LCS_TOO_LONG;pub use const::ERR_OFFSET_OUT_OF_RANGE;pub use const::ERR_STRING_EXCEEDS_MAX_SIZE;pub use const::ERR_VALUE_NOT_FLOAT;pub use const::ERR_VALUE_NOT_INTEGER;pub use const::ERR_WRONG_TYPE;pub use meta::STRING_HDR_SIZE;pub use meta::StringMeta;pub use meta::decode_string_value;pub use meta::encode_string_header;pub use meta::encode_string_value;pub use meta::encode_string_value_into;pub use meta::is_string_expired;pub use opt::DelEx;pub use opt::GetEx;pub use opt::Lcs;pub use opt::Set;pub use opt::StringLCS;pub use opt::StringLCSIdxResult;pub use opt::StringLCSMatchedRange;pub use opt::StringLCSRange;pub use opt::StringLCSResult;pub use opt::StringLCSType;pub use opt::StringMSet;pub use opt::StringPair;pub use opt::StringSet;pub use opt::StringSetType;pub use key::prefix as compose_string_prefix;pub use key::raw as compose_string_key;pub use key::raw_bytes as compose_string_key_bytes;pub use lcs::compute_lcs;pub use lcs::compute_lcs_with;pub use crate::meta::normalize_range;
Modules§
Constants§
- MAX_
STRING_ SIZE - Operation definition. Redis 字符串最大支持 512MB
Functions§
- format_
float - Serializes float to compact string format using zmij with zero heap allocation. 紧凑浮点数字符串序列化(基于 zmij 实现高性能零堆分配格式化,对标 Kvrocks util::Float2String)
- format_
float_ bytes - Domain operation (aligned with Kvrocks util::Float2String). 紧凑浮点数字节序列化(基于 zmij 实现零堆分配切片生成,对标 Kvrocks util::Float2String)
- get_
string_ raw - Zero-copy reads underlying SingleKV raw slice and expiration timestamp. 零拷贝读取底层 SingleKV 原始切片与过期信息(内部核心辅助方法,支持严格 WRONGTYPE 校验)
- parse_
i64_ fast - 高性能无分配 i64 解析
- parse_
redis_ float - Parses Redis float from byte slice with strict validation. 解析 Redis 浮点数(严格校验空白符与浮点合法性,对标 Kvrocks ParseFloat)
- parse_
redis_ integer - Parses parameter or binary slice. 解析 Redis 整数(单次遍历零拷贝字节解析,严格校验空白符与数值合法性,对标 Kvrocks ParseInt)
- string_
digest - Returns or computes calculated value. 计算字符串 64 位十六进制摘要(对标 Kvrocks util::StringDigest,单次分配)
- string_
digest_ bytes - Returns or computes calculated value. 计算字符串 16 字节十六进制摘要数组(零堆分配,对标 Kvrocks util::StringDigest)
Type Aliases§
- String
RawPayload - Raw String payload tuple: (raw_value_guard, expire_at_ms, payload_offset). String 原始数据三元组:(raw_value_guard, expire_at_ms, payload_offset)