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
↓ 1 callers
Method
execStandalone
单机模式执行命令的方式
database/server.go:66
↓ 1 callers
Function
fileExists
(filename string)
config/config.go:91
↓ 1 callers
Method
finishRequest
(reply redis.Reply)
redis/client/client.go:253
↓ 1 callers
Method
fsyncEverySecond
()
database/rdb/aof/aof.go:93
↓ 1 callers
Method
getLastInScoreRange
(min *ScoreBorder, max *ScoreBorder)
datastruct/sortedset/skiplist.go:261
↓ 1 callers
Function
getOrInitSet
(db *engine.DB, key string)
database/commands/set.go:315
↓ 1 callers
Method
getPositionAndCircle
(d time.Duration)
lib/timewheel/timewheel.go:169
↓ 1 callers
Method
getRank
* * return: 1 based rank, 0 means member not found */
datastruct/sortedset/skiplist.go:184
↓ 1 callers
Method
groupByCmdLines
对命令进行分组,以同一个节点上执行的所有命令为一组
database/cluster/tcc/coordinator.go:146
↓ 1 callers
Method
groupByWatch
对watching的key进行分组,以同一个节点上的key为一组
database/cluster/tcc/coordinator.go:165
↓ 1 callers
Method
handleWrite
()
redis/client/client.go:210
↓ 1 callers
Function
hashToCmd
(key string, hash dict.Dict)
lib/utils/marshal.go:110
↓ 1 callers
Method
heartbeat
()
redis/client/client.go:309
↓ 1 callers
Method
initSlots
()
lib/timewheel/timewheel.go:56
↓ 1 callers
Function
listToCmd
(key string, list List.List)
lib/utils/marshal.go:138
↓ 1 callers
Method
listenCmd
监听aofChan,写入 AOF 文件
database/rdb/aof/aof.go:200
↓ 1 callers
Method
loopSendMessage
循环从c.messageCh消息管道中取出消息,然后进行发送
database/publish/channel.go:87
↓ 1 callers
Function
makeSkipList
()
datastruct/sortedset/skiplist.go:50
↓ 1 callers
Function
mustLocal
判断这条命令是否一定在本地执行 TODO: 后面进行修改,这里只是进行简单的判断
database/cluster/cluster.go:97
↓ 1 callers
Function
newChannel
(name string)
database/publish/channel.go:33
↓ 1 callers
Function
newGetter
(addr string)
database/cluster/getter.go:18
↓ 1 callers
Method
newRewritePersister
()
database/rdb/aof/rewrite.go:24
↓ 1 callers
Method
notInit
检查 Locks 是否没有初始化,没有初始化则返回 true
datastruct/lock/lock_map.go:34
↓ 1 callers
Function
parseArray
(header []byte, reader *bufio.Reader, ch chan<- *Payload)
redis/parser/parser.go:111
↓ 1 callers
Function
parseBulkString
(header []byte, reader *bufio.Reader, ch chan<- *Payload)
redis/parser/parser.go:84
↓ 1 callers
Function
parser
(rawReader io.Reader, ch chan<- *Payload)
redis/parser/parser.go:25
↓ 1 callers
Method
prev
()
datastruct/list/iterator.go:84
↓ 1 callers
Method
publish
向该管道内发送消息
database/publish/channel.go:73
↓ 1 callers
Function
randomLevel
()
datastruct/sortedset/skiplist.go:57
↓ 1 callers
Method
recombineReplies
重组commit之后收到的命令结果
database/cluster/tcc/coordinator.go:195
↓ 1 callers
Method
reconnect
()
redis/client/client.go:270
↓ 1 callers
Method
scanAndRunTask
(slot *list.List)
lib/timewheel/timewheel.go:115
↓ 1 callers
Method
sendCommit
(peer string)
database/cluster/tcc/coordinator.go:180
↓ 1 callers
Method
sendEnd
(peer string)
database/cluster/tcc/coordinator.go:212
↓ 1 callers
Method
sendTry
(peer string, cmdLines [][][]byte)
database/cluster/tcc/coordinator.go:100
↓ 1 callers
Method
set
(val interface{})
datastruct/list/iterator.go:129
↓ 1 callers
Function
setDefault
()
config/config.go:79
↓ 1 callers
Function
setToCmd
(key string, set set.Set)
lib/utils/marshal.go:125
↓ 1 callers
Method
start
()
lib/timewheel/timewheel.go:68
↓ 1 callers
Function
stringToCmd
(key string, bytes []byte)
lib/utils/marshal.go:86
↓ 1 callers
Method
tickHandler
()
lib/timewheel/timewheel.go:105
↓ 1 callers
Function
validateArity
验证参数数量是否正确
database/engine/db.go:139
↓ 1 callers
Method
wait
(offset int)
redis/connection/fake_conn.go:48
↓ 1 callers
Function
zSetToCmd
(key string, zSet *sortedset.SortedSet)
lib/utils/marshal.go:95
Method
Add
(delta int)
lib/sync/wait/wait.go:13
Method
Add
(member string, score float64)
datastruct/sortedset/sortedset.go:17
Method
Add
(val interface{})
datastruct/list/list.go:11
Method
AddAof
(line CmdLine)
database/engine/db.go:161
Method
AddNodes
AddNodes 在哈希环上添加节点
lib/consistenthash/consistenthash.go:38
Method
AddSubscribeChannel
(names ...string)
redis/connection/publish.go:3
Method
AfterClientClose
(c redis.Connection)
database/server.go:260
Method
CancelSubscribeChannel
(names ...string)
redis/connection/publish.go:13
Method
CancelWatching
()
redis/connection/transaction.go:49
Method
Clean
Clean resets the buffer
redis/connection/fake_conn.go:90
Method
Clear
()
datastruct/dict/concurrent_dict.go:327
Method
Clear
()
datastruct/dict/simple_dict.go:114
Method
ClearCmdLines
()
interface/redis/conn.go:21
Method
ClearCmdLines
ClearCmdLines 清空multi队列
redis/connection/transaction.go:30
Method
Close
()
database/server.go:265
Method
Close
Close 关闭 AOF 持久化close
database/rdb/aof/aof.go:113
Method
Close
()
database/publish/publish.go:126
Method
Close
()
database/cluster/getter.go:144
Method
Close
()
database/cluster/cluster.go:89
Method
Close
()
interface/redis/conn.go:7
Method
Close
()
interface/tcp/handler.go:12
Method
Close
()
interface/cluster/cluster.go:13
Method
Close
Close 关闭连接池
lib/pool/pool.go:129
Method
Close
Close disconnect with the client
redis/connection/conn.go:78
Method
Close
()
redis/connection/fake_conn.go:101
Method
Close
()
redis/server/handler.go:113
Method
Contains
(expected Expected)
datastruct/list/quick_list.go:217
Method
DataString
()
redis/protocol/reply/bulk_string_reply.go:24
Method
DataString
()
redis/protocol/reply/bulk_string_reply.go:39
Method
DataString
()
redis/protocol/reply/err_reply.go:28
Method
DataString
()
redis/protocol/reply/err_reply.go:51
Method
DataString
()
redis/protocol/reply/err_reply.go:78
Method
DataString
()
redis/protocol/reply/err_reply.go:96
Method
DataString
()
redis/protocol/reply/multi_bulk_string_reply.go:31
Method
DataString
()
redis/protocol/reply/multi_bulk_string_reply.go:59
Method
DataString
()
redis/protocol/reply/int_reply.go:22
Method
DataString
()
redis/protocol/reply/status_reply.go:19
Method
DataString
()
redis/protocol/reply/status_reply.go:42
Method
DataString
()
redis/protocol/reply/status_reply.go:64
Method
DataString
()
redis/protocol/reply/status_reply.go:82
Method
Diff
Diff 返回差集,当前集合-another
datastruct/set/simple_set.go:98
Method
EnqueueCmdLine
EnqueueCmdLine 向multi队列中加入命令
redis/connection/transaction.go:25
Method
EnqueueSyntaxErrQueue
(r redis.Reply)
redis/connection/transaction.go:38
Method
Exec
(client redis.Connection, cmdLine [][]byte)
database/server.go:57
Method
Exec
Exec executes command within one database
database/engine/db.go:59
Method
Flush
Flush Warning! clean all db data
database/engine/db.go:52
Method
ForEach
(dbIndex int, cb func(key string, data *database.DataEntity, expiration *time.Time) bool)
database/server.go:283
Method
ForEach
ForEach traverses all the keys in the database
database/engine/db.go:170
Method
ForEach
ExecWithLock(conn redis.Connection, cmdLine [][]byte) redis.Reply ExecMulti(conn redis.Connection, watching map[string]uint32, cmdLines []CmdLine) red
interface/database/db.go:24
Method
ForEach
(consumer Consumer)
datastruct/list/list.go:21
Method
ForEach
(consumer Consumer)
datastruct/dict/simple_dict.go:67
Method
Get
Get 获取一个空闲连接
lib/pool/pool.go:53
Method
Get
Get reads the value atomically
lib/sync/atomic/bool.go:8
Method
Get
(member string)
datastruct/sortedset/sortedset.go:39
Method
Get
(index int)
datastruct/list/quick_list.go:52
Method
Get
(key string)
datastruct/dict/concurrent_dict.go:94
← previous
next →
301–400 of 569, ranked by callers