Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arana-db/kiwi
/ functions
Functions
2,670 in github.com/arana-db/kiwi
⨍
Functions
2,670
◇
Types & classes
421
↓ 424 callers
Method
set_reply
(&self, reply: RespData)
src/client/src/lib.rs:116
↓ 369 callers
Method
encode
(&self)
src/storage/src/format.rs:79
↓ 294 callers
Method
len
(&self)
src/net/src/buffer.rs:97
↓ 262 callers
Method
clone
(&self)
src/cmd/src/lib.rs:262
↓ 235 callers
Method
push
(items: Vec<RespData>)
src/resp/src/types.rs:268
↓ 214 callers
Method
argv
(&self)
src/client/src/lib.rs:81
↓ 150 callers
Method
lock
Acquire the lock for `key`, blocking until it becomes available.
src/kstd/src/lock_mgr.rs:53
↓ 145 callers
Method
map
(pairs: Vec<(RespData, RespData)>)
src/resp/src/types.rs:260
↓ 144 callers
Method
clone
(&self)
src/raft/src/network.rs:211
↓ 129 callers
Method
is_empty
(&self)
src/net/src/buffer.rs:101
↓ 124 callers
Method
len
Get the current queue size
src/common/runtime/message.rs:571
↓ 117 callers
Function
safe_cleanup_test_db
Safe cleanup function that handles Windows file locking issues
src/storage/src/util.rs:43
↓ 113 callers
Method
parse
(&mut self, data: Bytes)
src/resp/src/parse.rs:485
↓ 112 callers
Method
put
(&mut self, cf_idx: ColumnFamilyIndex, key: &[u8], value: &[u8])
src/storage/src/batch.rs:195
↓ 112 callers
Function
unique_test_db_path
Utility functions and data structures for the storage engine
src/storage/src/util.rs:20
↓ 107 callers
Method
get_instance_id
Calculate the instance ID from given slot ID.
src/storage/src/slot_indexer.rs:49
↓ 104 callers
Function
key_to_slot_id
Map key to slot ID using CRC16-ARC (compatible with Redis Cluster hash slot)
src/storage/src/slot_indexer.rs:63
↓ 93 callers
Method
open
(&mut self, db_path: &str)
src/storage/src/redis.rs:177
↓ 86 callers
Method
clone
(&self)
src/net/src/buffer.rs:328
↓ 85 callers
Method
clone
(&self)
src/common/runtime/global_storage.rs:85
↓ 82 callers
Method
set_key
(&self, key: &[u8])
src/client/src/lib.rs:106
↓ 79 callers
Method
version
(&self)
src/storage/src/format_base_value.rs:203
↓ 78 callers
Method
is_stale
check if the encoded value of any type is expired (type-agnostic) This function can check the expired status without parsing the value. The etime fi
src/storage/src/redis.rs:725
↓ 75 callers
Method
delete
(&mut self, cf_idx: ColumnFamilyIndex, key: &[u8])
src/storage/src/batch.rs:202
↓ 73 callers
Method
count
(&self)
src/storage/src/format_list_meta_value.rs:244
↓ 71 callers
Method
zadd
Add one or more members to a sorted set, or update its score if it already exists
src/storage/src/redis_zsets.rs:40
↓ 69 callers
Method
commit
(self: Box<Self>)
src/storage/src/batch.rs:209
↓ 65 callers
Method
create_batch
Create a new batch for atomic write operations. This method creates a batch appropriate for the current deployment mode: - In standalone mode, return
src/storage/src/redis.rs:446
↓ 63 callers
Method
key
(&self)
src/client/src/lib.rs:111
↓ 60 callers
Function
create_test_redis
()
src/storage/tests/redis_zset_test.rs:29
↓ 60 callers
Method
start
Start both runtimes
src/common/runtime/manager.rs:125
↓ 56 callers
Method
get_cf_handle
Get column-family handle
src/storage/src/redis.rs:412
↓ 54 callers
Method
get
GET command - retrieve a value by key
src/net/src/storage_client.rs:72
↓ 54 callers
Method
set
Set key to hold the string value. if key already holds a value, it is overwritten
src/storage/src/storage_impl.rs:48
↓ 53 callers
Method
set_need_close
Set whether to close the database
src/storage/src/redis.rs:365
↓ 50 callers
Method
send_request
Send a storage request and wait for the response
src/common/runtime/message.rs:818
↓ 49 callers
Method
get_opt
(&self, key: &[u8], readopts: &ReadOptions)
src/engine/src/rocksdb_engine.rs:53
↓ 48 callers
Method
stop
Stop both runtimes gracefully
src/common/runtime/manager.rs:225
↓ 47 callers
Method
check_type
(&self, key: &[u8], key_type: DataType)
src/storage/src/redis.rs:647
↓ 47 callers
Method
get
(&self, key: &[u8])
src/storage/src/storage_impl.rs:54
↓ 47 callers
Method
lrange
Returns the specified elements of the list stored at key
src/storage/src/redis_lists.rs:595
↓ 46 callers
Method
is_valid
(&self)
src/storage/src/format_base_value.rs:227
↓ 45 callers
Method
llen
Returns the length of the list stored at key
src/storage/src/redis_lists.rs:522
↓ 44 callers
Method
sadd
Add one or more members to a set
src/storage/src/redis_sets.rs:41
↓ 43 callers
Method
user_value
When used to represent MetaValue, this function will not be called
src/storage/src/format_base_value.rs:196
↓ 42 callers
Method
rpush
Insert all the specified values at the tail of the list stored at key
src/storage/src/redis_lists.rs:266
↓ 41 callers
Method
write
(&self, data: &[u8])
src/client/src/lib.rs:71
↓ 40 callers
Function
create_test_db_with_cfs
Helper function to create a test database with required column families
src/raft/src/log_store_rocksdb.rs:679
↓ 39 callers
Method
as_bytes
(&self)
src/resp/src/types.rs:156
↓ 39 callers
Method
cf_handle
Column family operations
src/engine/src/rocksdb_engine.rs:94
↓ 39 callers
Method
load
load config from file - supports Redis-style key-value format
src/conf/src/config.rs:309
↓ 34 callers
Function
encode_log_key
编码日志索引为 RocksDB 键
src/raft/src/log_store_rocksdb.rs:498
↓ 34 callers
Method
put_cf
(&'a self, cf: &ColumnFamilyRef<'a>, key: &[u8], value: &[u8])
src/engine/src/rocksdb_engine.rs:111
↓ 33 callers
Function
create_test_redis
()
src/storage/tests/redis_list_test.rs:32
↓ 32 callers
Method
encode_seek_key
(&self)
src/storage/src/format_zset_score_key.rs:88
↓ 32 callers
Method
get_cf_opt
( &'a self, cf: &ColumnFamilyRef<'a>, key: &[u8], readopts: &ReadOptions,
src/engine/src/rocksdb_engine.rs:102
↓ 32 callers
Method
lpush
Insert all the specified values at the head of the list stored at key
src/storage/src/redis_lists.rs:258
↓ 32 callers
Method
set_etime
(&mut self, etime: u64)
src/storage/src/format_base_value.rs:111
↓ 31 callers
Method
get_cf
(&'a self, cf: &ColumnFamilyRef<'a>, key: &[u8])
src/engine/src/rocksdb_engine.rs:98
↓ 31 callers
Method
iterator_cf_opt
( &'a self, cf: &ColumnFamilyRef<'a>, readopts: ReadOptions, mode: IteratorMod
src/engine/src/rocksdb_engine.rs:168
↓ 31 callers
Method
read
(&self, buf: &mut [u8])
src/client/src/lib.rs:66
↓ 31 callers
Method
write
( &self, request: Request<WriteRequest>, )
src/raft/src/grpc/client.rs:78
↓ 30 callers
Method
append_crlf
(&mut self)
src/resp/src/encode.rs:187
↓ 30 callers
Method
encode_resp_data
(&mut self, data: &RespData)
src/resp/src/encode.rs:364
↓ 29 callers
Function
create_redis_instance
()
src/storage/tests/redis_basic_test.rs:166
↓ 28 callers
Method
left_index
(&self)
src/storage/src/format_list_meta_value.rs:75
↓ 27 callers
Method
shutdown
(&mut self)
src/storage/src/storage.rs:214
↓ 27 callers
Method
update
Append new mapping (with step_length_mask sampling) Only append when (log_index & step_length_mask) == 0 Note: LogIndex is i64 but expected to be no
src/storage/src/logindex/collector.rs:95
↓ 26 callers
Function
serialize
序列化数据结构为字节序列
src/raft/src/log_store_rocksdb.rs:478
↓ 26 callers
Method
set_count
(&mut self, count: u64)
src/storage/src/format_list_meta_value.rs:248
↓ 26 callers
Method
zscore
Get the score associated with the given member in a sorted set
src/storage/src/redis_zsets.rs:440
↓ 25 callers
Method
is_empty
Check if the queue is empty
src/common/runtime/message.rs:576
↓ 24 callers
Method
do_try_get_log_entries
读取指定范围的日志条目
src/raft/src/log_store_rocksdb.rs:134
↓ 24 callers
Method
mset
MSET command - multiple set operations
src/net/src/storage_client.rs:223
↓ 24 callers
Method
ok
Create a success status.
src/kstd/src/status.rs:39
↓ 23 callers
Method
build
(self)
src/executor/src/builder.rs:43
↓ 23 callers
Method
encoded
Get encoded bytes of the meta value
src/storage/src/format_base_meta_value.rs:234
↓ 23 callers
Method
filter
(&mut self, _level: u32, key: &[u8], _value: &[u8])
src/storage/src/data_compaction_filter.rs:199
↓ 23 callers
Method
lindex
Returns the element at index in the list stored at key
src/storage/src/redis_lists.rs:542
↓ 23 callers
Method
send
(&self, task: BgTask)
src/storage/src/storage.rs:85
↓ 22 callers
Method
set
(items: Vec<RespData>)
src/resp/src/types.rs:264
↓ 22 callers
Method
try_into
(self)
src/raft/src/conversion.rs:106
↓ 21 callers
Method
hset
(&self, key: &[u8], field: &[u8], value: &[u8])
src/storage/src/redis_hashes.rs:279
↓ 21 callers
Method
load
Get the current Storage instance. This is a cheap atomic read (~1-2ns overhead).
src/common/runtime/global_storage.rs:56
↓ 21 callers
Method
zlexcount
Count the members in a sorted set within the given lexicographical range
src/storage/src/redis_zsets.rs:876
↓ 20 callers
Method
clone_box
(&self)
src/cmd/src/lib.rs:299
↓ 20 callers
Function
encode_user_key
(user_key: &[u8], dst: &mut BytesMut)
src/storage/src/storage_define.rs:49
↓ 20 callers
Method
ttl
Get the time to live for a key in seconds
src/storage/src/redis_multi.rs:194
↓ 19 callers
Method
encode
(&self)
src/storage/src/format_zset_score_key.rs:67
↓ 19 callers
Method
filter
(&mut self, _level: u32, key: &[u8], value: &[u8])
src/storage/src/meta_compaction_filter.rs:40
↓ 19 callers
Method
key
(&self)
src/storage/src/format_base_key.rs:88
↓ 18 callers
Method
health_check
Create a health check error
src/common/runtime/error.rs:99
↓ 16 callers
Method
seqno
(&self)
src/storage/src/logindex/types.rs:108
↓ 16 callers
Method
set_line_string
(&mut self, value: &str)
src/resp/src/encode.rs:348
↓ 16 callers
Method
zcard
Get the number of members in a sorted set
src/storage/src/redis_zsets.rs:225
↓ 15 callers
Method
clear
(&mut self)
src/resp/src/encode.rs:354
↓ 15 callers
Method
delete_keys_with_prefix
Helper method to delete keys with a specific prefix
src/storage/src/redis_multi.rs:459
↓ 15 callers
Function
encode_fixed
(buf: &mut [u8], value: T)
src/storage/src/coding.rs:68
↓ 15 callers
Method
into_inner
(mut self)
src/kstd/src/lock_mgr.rs:137
↓ 15 callers
Function
parse_usize_value
(key: &str, value: &str)
src/conf/src/config.rs:285
next →
1–100 of 2,670, ranked by callers