Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dawnzzz/simple-redis
/ functions
Functions
569 in github.com/dawnzzz/simple-redis
⨍
Functions
569
◇
Types & classes
78
Method
Get
(key string)
datastruct/dict/simple_dict.go:19
Method
GetAllNodes
()
interface/cluster/cluster.go:8
Method
GetAllNodes
()
lib/consistenthash/consistenthash.go:79
Method
GetDBIndex
()
redis/connection/conn.go:102
Method
GetDBSize
(dbIndex int)
database/server.go:278
Method
GetDBSize
()
database/engine/db.go:165
Method
GetEnqueuedCmdLine
GetEnqueuedCmdLine 获取multi中的命令
redis/connection/transaction.go:20
Method
GetMultiStatus
GetMultiStatus 获取是否在multi中
redis/connection/transaction.go:6
Method
GetPassword
()
redis/connection/conn.go:98
Method
GetSubscribeNum
()
redis/connection/publish.go:19
Method
GetSubscribes
()
redis/connection/publish.go:23
Method
GetSyntaxErrQueue
()
redis/connection/transaction.go:34
Method
GetTxID
()
redis/connection/transaction.go:57
Method
GetWatching
()
redis/connection/transaction.go:42
Method
Handle
(ctx context.Context, conn net.Conn)
redis/server/handler.go:61
Method
Insert
(index int, val interface{})
datastruct/list/quick_list.go:67
Method
Intersect
Intersect 返回交集
datastruct/set/simple_set.go:58
Method
Keys
()
datastruct/dict/simple_dict.go:80
Method
Len
()
datastruct/dict/dict.go:9
Method
Locks
(keys ...string)
datastruct/lock/lock_map.go:105
Function
MakeAuxiliaryServer
MakeAuxiliaryServer create a Server only with basic capabilities for aof rewrite and other usages
database/persistence.go:12
Function
MakeQuickList
()
datastruct/list/quick_list.go:17
Method
Name
()
redis/connection/conn.go:110
Function
NewCluster
(self string)
database/cluster/cluster.go:29
Function
NewClusterServer
NewClusterServer 创建一个集群服务器
database/server.go:43
Function
NewStandaloneServer
NewStandaloneServer creates a standalone redis server
database/server.go:36
Function
NewTxGetter
(addr string, dbIndex int)
database/cluster/getter.go:76
Method
PickNode
PickNode 计算key对应的节点
lib/consistenthash/consistenthash.go:58
Method
PopMin
(count int)
datastruct/sortedset/sortedset.go:205
Method
Put
(x interface{})
lib/pool/pool.go:102
Method
Put
Put 返回新增kv的数量
datastruct/dict/concurrent_dict.go:120
Method
Put
(key string, val interface{})
datastruct/dict/simple_dict.go:31
Method
PutIfAbsent
PutIfAbsent put a DataEntity into DB if key not exists
database/engine/op_data.go:38
Method
PutIfAbsent
PutIfAbsent 如果不存在就新增,不做更新操作,返回新增的数量
datastruct/dict/concurrent_dict.go:147
Method
PutIfAbsent
(key string, val interface{})
datastruct/dict/simple_dict.go:36
Method
PutIfExists
PutIfExists put a DataEntity into DB if key exists (update)
database/engine/op_data.go:33
Method
PutIfExists
PutIfExists 只做更新操作,返回更新的数量
datastruct/dict/concurrent_dict.go:173
Method
PutIfExists
(key string, val interface{})
datastruct/dict/simple_dict.go:47
Method
RLocks
(keys ...string)
datastruct/lock/lock_map.go:119
Method
RUnlocks
(keys ...string)
datastruct/lock/lock_map.go:126
Method
RWLocks
(writeKeys []string, readKeys []string)
datastruct/lock/lock_map.go:133
Method
RandomDistinctKeys
RandomDistinctKeys 随机返回最多 limit 个 key,不包含重复的key
datastruct/dict/concurrent_dict.go:296
Method
RandomDistinctKeys
(limit int)
datastruct/dict/simple_dict.go:101
Method
RandomDistinctMembers
(limit int)
datastruct/set/simple_set.go:119
Method
RandomKeys
RandomKeys 随机返回最多 limit 个 key,可能包含重复的key
datastruct/dict/concurrent_dict.go:266
Method
RandomKeys
(limit int)
datastruct/dict/simple_dict.go:89
Method
RandomMembers
(limit int)
datastruct/set/set.go:13
Method
RandomMembers
(limit int)
datastruct/set/simple_set.go:115
Method
Range
Range returns members which rank within [start, stop), sort by ascending order, rank starts from 0
datastruct/sortedset/sortedset.go:108
Method
Range
(start int, stop int)
datastruct/list/quick_list.go:230
Method
Read
Read reads data from buffer
redis/connection/fake_conn.go:64
Method
RemoteExec
(dbIndex int, args [][]byte)
database/cluster/getter.go:131
Method
Remove
(member string)
datastruct/sortedset/sortedset.go:47
Method
Remove
(index int)
datastruct/list/quick_list.go:111
Method
Remove
(val string)
datastruct/set/simple_set.go:25
Method
Remove
Remove 删除,返回删除的数量
datastruct/dict/concurrent_dict.go:197
Method
Remove
(key string)
datastruct/dict/simple_dict.go:58
Method
Remove
(key string)
datastruct/dict/dict.go:13
Method
RemoveAllByVal
(expected Expected)
datastruct/list/quick_list.go:131
Method
RemoveByVal
(expected Expected, count int)
datastruct/list/quick_list.go:150
Method
RemoveLast
()
datastruct/list/quick_list.go:121
Method
Removes
Removes the given keys from db
database/engine/op_data.go:52
Method
ReverseRemoveByVal
(expected Expected, count int)
datastruct/list/quick_list.go:171
Method
SelectDB
(i int)
redis/connection/conn.go:106
Method
Set
Set writes the value atomically
lib/sync/atomic/bool.go:13
Method
Set
(index int, val interface{})
datastruct/list/quick_list.go:58
Method
SetMultiStatus
SetMultiStatus 设置是否在multi中
redis/connection/transaction.go:11
Method
SetPassword
(password string)
redis/connection/conn.go:94
Method
SetTxID
(id string)
redis/connection/transaction.go:53
Function
TestConcurrentDict
(t *testing.T)
datastruct/dict/concurrent_dict_test.go:8
Function
TestDB
(t *testing.T)
database/engine/db_test.go:19
Function
TestParseStream
(t *testing.T)
redis/parser/parse_test.go:5
Function
TestPool
(t *testing.T)
lib/pool/pool_test.go:5
Function
TestTimeWheel
(t *testing.T)
lib/timewheel/timewheel_test.go:8
Method
ToBytes
()
redis/protocol/reply/bulk_string_reply.go:15
Method
ToBytes
()
redis/protocol/reply/bulk_string_reply.go:35
Method
ToBytes
()
redis/protocol/reply/err_reply.go:24
Method
ToBytes
ToBytes marshals redis.Reply
redis/protocol/reply/err_reply.go:43
Method
ToBytes
ToBytes marshals redis.Reply
redis/protocol/reply/err_reply.go:74
Method
ToBytes
ToBytes marshals redis.Reply
redis/protocol/reply/err_reply.go:92
Method
ToBytes
()
redis/protocol/reply/multi_bulk_string_reply.go:19
Method
ToBytes
()
redis/protocol/reply/multi_bulk_string_reply.go:55
Method
ToBytes
ToBytes marshal redis.Reply
redis/protocol/reply/int_reply.go:18
Method
ToBytes
()
redis/protocol/reply/status_reply.go:15
Method
ToBytes
ToBytes marshal redis.Reply
redis/protocol/reply/status_reply.go:38
Method
ToBytes
()
redis/protocol/reply/status_reply.go:60
Method
ToBytes
ToBytes marshal redis.Reply
redis/protocol/reply/status_reply.go:78
Method
ToSlice
()
datastruct/set/set.go:8
Method
ToSlice
()
datastruct/set/simple_set.go:39
Method
Union
Union 合并两个集合
datastruct/set/simple_set.go:76
Method
Unlocks
(keys ...string)
datastruct/lock/lock_map.go:112
Method
Write
Write sends response to client over tcp connection
redis/connection/conn.go:64
Method
Write
Write writes data to buffer
redis/connection/fake_conn.go:25
Function
execAppend
(db *engine.DB, args [][]byte)
database/commands/string.go:104
Function
execDecr
(db *engine.DB, args [][]byte)
database/commands/string.go:156
Function
execDecrBy
(db *engine.DB, args [][]byte)
database/commands/string.go:174
Function
execDel
(db *engine.DB, args [][]byte)
database/commands/keys.go:11
Function
execExist
(db *engine.DB, args [][]byte)
database/commands/keys.go:87
Function
execExpire
(db *engine.DB, args [][]byte)
database/commands/keys.go:55
Function
execExpireAt
(db *engine.DB, args [][]byte)
database/commands/keys.go:34
← previous
next →
401–500 of 569, ranked by callers