#[macro_use]
mod macros;
pub mod bitmap;
pub mod bloom;
pub mod conf;
pub mod db;
pub mod error;
pub mod geo;
pub mod hash;
pub mod hll;
pub mod json;
pub mod key_composer;
pub mod keyspace;
pub mod list;
pub mod meta;
pub mod namespace;
pub use wedb_resp as resp;
pub mod scope;
pub mod search;
pub mod set;
pub mod sortedint;
pub mod stream;
pub mod string;
pub mod tdigest;
pub mod timeseries;
pub mod zset;
pub use bitmap::{
ArrayBitfieldBitmap, BitOp, BitfieldEncoding, BitfieldOpType, BitfieldOperation,
BitfieldOverflow, BitfieldValue, BitmapMeta, bit_op_exec, bitfield_op_calc,
find_bit_in_byte_lsb, find_bit_in_byte_msb, parse_bitfield_offset,
};
pub use bloom::{
BfInsert, BfReserve, BlockSplitBloomFilter, BloomChainMeta, BloomFilterAddResult,
BloomFilterInfo, BloomFilterInsertOptions, BloomInfoType, CfInsert, CfReserve, CuckooChainMeta,
CuckooFilterHelper, CuckooFilterInfo, CuckooFilterInsertOptions,
};
pub use conf::Conf;
pub use db::WeDb;
pub use error::{Error, Result};
pub use geo::{
DistanceSort, DistanceUnit, GeoPoint, GeoRadiusOption, GeoSearch, GeoSearchStoreOption,
GeoShape, GeoShapeType, OriginPoint,
};
pub use hash::{
FIELD_EXPIRE_PREFIX_LEN, FieldValue, HExpire, HSetEx, HashFetchType, HashLengthMode, HashMeta,
HashSubkeyEncodingMode, decode_hash_value, encode_hash_value, is_field_expired,
};
pub use hll::{
HLL_ALPHA_INF, HLL_DENSE_SIZE, HLL_HASH_BIT_COUNT, HLL_HASH_SEED, HLL_REGISTER_COUNT_MASK,
HLL_REGISTER_COUNT_POW, HLL_REGISTER_MAX, HLL_REGISTERS, HLL_SEGMENT_BYTES, HLL_SEGMENT_COUNT,
HLL_SEGMENT_REGISTERS, HLL_SPARSE_MAX_BYTES, HllEncodeType, HllSparseOp, HyperLogLog,
HyperLogLogMeta, decode_sparse_op, dense_estimate, extract_dense_hll_result, get_register,
hll_dense_estimate, hll_dense_estimate_segments, hll_dense_get_register, hll_dense_reg_histo,
hll_dense_set_register, hll_dense_to_sparse, hll_estimate_from_histo, hll_merge_bytes,
hll_merge_segments, hll_merge_sparse_into_dense, hll_murmur_hash_64a, hll_sigma,
hll_sparse_estimate, hll_sparse_get_register, hll_sparse_is_valid, hll_sparse_new,
hll_sparse_reg_histo, hll_sparse_set_register, hll_sparse_to_dense, hll_tau, murmur_hash_64a,
rapid_hash, set_register,
};
pub use json::{JsonArrIndex, JsonMeta, JsonNumberOp, JsonSet, JsonStorageFormat};
pub use key_composer::{
ALL_COMPOSITE_META_TAGS, DEFAULT_NAMESPACE, HASH_SLOTS_MASK, HASH_SLOTS_SIZE, InternalKey,
KeyComposer, NS_NAME_PREFIX, compose_namespace_key, compose_namespace_key_with_slot,
compose_slot_key_prefix, compose_slot_key_upper_bound, crc16, db_to_namespace,
extract_namespace_key, extract_slot_id, get_slot_id_from_key, get_tag_from_key,
is_default_namespace, is_default_namespace_bytes, matches_glob, matches_glob_bytes,
namespace_to_db, ns_name_key,
};
pub use keyspace::{DATA, Keyspace, META};
pub use list::{ListMeta, PosSpec};
pub use meta::{
KeyMeta, RedisType, current_now_ms, current_now_sec, generate_version, init_version_counter,
normalize_range, version_to_time,
};
pub use namespace::{Dbs, HashOps, KvOps, ListOps, Namespace, Namespaces, SetOps, ZSetOps};
pub use resp::{RespValue, find_crlf, parse_i64_fast, parse_resp, parse_resp_slice};
pub use scope::{ScopeId, decode_u64_varint, encode_u64_varint};
pub use search::{
AggregateResult, AggregateRow, Candidate, DEFAULT_STOP_WORDS, DistanceMetric, FtAggregate,
FtAliasAdd, FtAliasDel, FtAliasUpdate, FtConfigCommand, FtCreate, FtDropIndex, FtFieldInfo,
FtGroupBy, FtIndexDefinition, FtInfo, FtList, FtReducer, FtSearch, FtSugAdd, FtSugDel,
FtSugGet, FtSugLen, FtTagVals, HnswGraph, HnswLevelType, HnswNode, IndexField, IndexFieldType,
IndexOnDataType, InvertedIndex, MinCandidate, Posting, SearchDoc, SearchIndexManager,
SearchIndexSchema, SearchKey, SearchQueryNode, SearchResult, SearchSubkeyType, SuggestionDict,
SuggestionItem, VectorAlgorithm, VectorFieldMetadata, VectorType, compute_vector_distance,
decode_hnsw_node_meta, decode_hnsw_vector_field_meta, decode_index_meta, decode_index_prefixes,
decode_numeric_field_meta, decode_sortable_f64, decode_sortable_f64_u64, decode_sortable_i64,
decode_tag_field_meta, encode_hnsw_node_meta, encode_hnsw_vector_field_meta, encode_index_meta,
encode_index_prefixes, encode_numeric_field_meta, encode_sortable_f64, encode_sortable_f64_u64,
encode_sortable_i64, encode_tag_field_meta, explain_search_query, explain_search_query_cli,
extract_doc_terms, levenshtein_distance, parse_search_query, parse_search_query_with_params,
parse_vector_from_slice, tokenize_tags, tokenize_text, tokenize_text_with_stopwords,
unescape_tag_string,
};
pub use set::{SetMeta, SetScanResult};
pub use sortedint::{SortedintMeta, SortedintRangeSpec, parse_range_spec};
pub use stream::{
NextStreamEntryIdStrategy, StreamAddOptions, StreamAutoClaimOptions, StreamAutoClaimResult,
StreamClaimOptions, StreamClaimResult, StreamConsumerGroupMeta, StreamConsumerMeta,
StreamEntry, StreamGetPendingEntryResult, StreamId, StreamInfo, StreamLenOptions, StreamMeta,
StreamNack, StreamPelEntry, StreamPendingOptions, StreamRangeOptions, StreamReadOptions,
StreamSubkeyType, StreamTrimOptions, StreamTrimStrategy, StreamXGroupCreateOptions, XAdd,
XGroup, XRange, XRead, XTrim, check_lag_valid, decode_stream_entry_fields,
encode_stream_entry_fields,
};
pub use string::{
DelEx, GetEx, Lcs, Set, StringLCSArgs, StringLCSIdxResult, StringLCSMatchedRange,
StringLCSRange, StringLCSResult, StringLCSType, StringMSetArgs, StringMeta, StringPair,
StringSetArgs, StringSetType, decode_string_value, encode_string_value, format_float,
format_float_bytes, is_string_expired,
};
pub use tdigest::{
ABS_EPS, Centroid, CentroidsWithDelta, REL_EPS, ScalerK1, TDigest, TDigestCreate, TDigestMerge,
TDigestMerger, TDigestMergerTool, TDigestMeta, calculate_capacity, decode_double_from_u64,
double_compare, double_equal, encode_double_to_u64, lerp, tdigest_by_rank_calc,
tdigest_cdf_calc, tdigest_merge_buffer_and_centroids, tdigest_merge_centroids_list,
tdigest_quantile_calc, tdigest_rank_calc, tdigest_trimmed_mean_calc,
};
pub use timeseries::{
AggregationType, Aggregator, BucketTimestampType, ChunkHeader, ChunkType, DuplicatePolicy,
GroupReducerType, TSChunk, TSCreateOption, TSDownStreamMeta, TSMGetOption, TSMGetResult,
TSMRangeOption, TSMRangeResult, TSRangeOption, TSSample,
};
pub use zset::{Aggregate, RangeLexSpec, RangeRankSpec, RangeScoreSpec, ZAdd, ZRange, ZRangeSpec};