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
EnqueueCmdLine
([][]byte)
interface/redis/conn.go:20
↓ 1 callers
Function
EntityToBytes
EntityToBytes serialize data entity to redis multi bulk bytes
lib/utils/marshal.go:24
↓ 1 callers
Function
EntityToCmdLine
(key string, entity *database.DataEntity)
lib/utils/marshal.go:32
↓ 1 callers
Method
Error
()
redis/protocol/reply/err_reply.go:20
↓ 1 callers
Method
Error
()
redis/protocol/reply/err_reply.go:47
↓ 1 callers
Method
Error
()
redis/protocol/reply/err_reply.go:82
↓ 1 callers
Method
Error
()
redis/protocol/reply/err_reply.go:100
↓ 1 callers
Function
Errorf
(format string, args ...interface{})
logger/logger.go:44
↓ 1 callers
Method
Exec
(client redis.Connection, dbIndex int, db *engine.DB, cmdLine [][]byte)
database/cluster/cluster.go:58
↓ 1 callers
Method
ExecMulti
ExecMulti multi命令执行阶段
database/engine/transaction.go:13
↓ 1 callers
Method
ExecMultiCluster
ExecMultiCluster 集群模式下执行exec命令
database/cluster/transaction.go:38
↓ 1 callers
Method
ExecMultiCommand
(cmdLines [][][]byte, watching map[string]uint32)
database/engine/transaction.go:17
↓ 1 callers
Function
ExecMultiStandalone
ExecMultiStandalone 单机模式执行multi队列中的命令
database/transaction.go:27
↓ 1 callers
Method
ExecTx
ExecTx 执行TCC分布式事务
database/cluster/tcc/coordinator.go:39
↓ 1 callers
Function
ExecUnWatchStandalone
ExecUnWatchStandalone 取消对所有key的watch
database/transaction.go:99
↓ 1 callers
Function
ExecWatchStandalone
ExecWatchStandalone 执行WATCH命令
database/transaction.go:72
↓ 1 callers
Function
ExpireToBytes
ExpireToBytes 将expireAt命令转为[]byte(*reply.MultiBulkStringReply.ToBytes())
lib/utils/marshal.go:67
↓ 1 callers
Method
FinishRewrite
FinishRewrite 暂停 AOF 写入 -> 将重写过程中产生的**新数据写入临时文件**中 -> 使用临时文件覆盖 AOF 文件(使用文件系统的 mv 命令保证安全) -> 恢复 AOF 写入。
database/rdb/aof/rewrite.go:133
↓ 1 callers
Method
ForEach
(consumer Consumer)
datastruct/list/quick_list.go:194
↓ 1 callers
Method
ForEach
(consumer Consumer)
datastruct/dict/concurrent_dict.go:221
↓ 1 callers
Method
ForEach
(consumer Consumer)
datastruct/dict/dict.go:14
↓ 1 callers
Method
ForEachByScore
ForEachByScore visits members which score within the given border
datastruct/sortedset/sortedset.go:143
↓ 1 callers
Method
GetDBSize
RWLocks(dbIndex int, writeKeys []string, readKeys []string) RWUnLocks(dbIndex int, writeKeys []string, readKeys []string)
interface/database/db.go:27
↓ 1 callers
Method
GetIndex
()
database/engine/db.go:147
↓ 1 callers
Method
GetPassword
()
interface/redis/conn.go:10
↓ 1 callers
Method
GetSubscribes
()
interface/redis/conn.go:32
↓ 1 callers
Method
GetTxID
()
interface/redis/conn.go:27
↓ 1 callers
Function
GetWriteReadKeys
(cmdLine [][]byte)
database/engine/router.go:57
↓ 1 callers
Method
Handle
(ctx context.Context, conn net.Conn)
interface/tcp/handler.go:11
↓ 1 callers
Method
Has
(val string)
datastruct/set/simple_set.go:29
↓ 1 callers
Function
Infof
(format string, args ...interface{})
logger/logger.go:32
↓ 1 callers
Function
Infoln
(args ...interface{})
logger/logger.go:28
↓ 1 callers
Method
Intersect
(another Set)
datastruct/set/set.go:10
↓ 1 callers
Method
IsEmpty
()
lib/consistenthash/consistenthash.go:33
↓ 1 callers
Method
IsExpired
IsExpired key是否过期
database/engine/op_ttl.go:69
↓ 1 callers
Method
Keys
()
datastruct/dict/dict.go:15
↓ 1 callers
Method
Len
()
datastruct/set/simple_set.go:35
↓ 1 callers
Method
Len
()
datastruct/dict/simple_dict.go:24
↓ 1 callers
Function
ListenAndServe
ListenAndServe TCP 服务器应用层服务
tcp/server.go:47
↓ 1 callers
Function
ListenAndServeWithSignal
ListenAndServeWithSignal 服务器开启监听,并且使用 signal 作为结束信号
tcp/server.go:17
↓ 1 callers
Function
MakeBasicDB
()
database/engine/db.go:42
↓ 1 callers
Function
MakeCmdLineClient
(addr string, keepalive int)
redis/client/client.go:75
↓ 1 callers
Function
MakeHandler
MakeHandler creates a Handler instance
redis/server/handler.go:32
↓ 1 callers
Function
MakeSortedSet
()
datastruct/sortedset/sortedset.go:10
↓ 1 callers
Function
New
(interval time.Duration, slotNum int)
lib/timewheel/timewheel.go:35
↓ 1 callers
Function
New
(replicas int, fn HashFunc)
lib/consistenthash/consistenthash.go:20
↓ 1 callers
Function
NewConn
NewConn creates Connection instance
redis/connection/conn.go:51
↓ 1 callers
Function
NewCoordinator
(id string, dbIndex int, self string, peers cluster.PeerPicker, getters map[string]cluster.PeerGetter)
database/cluster/tcc/coordinator.go:26
↓ 1 callers
Function
NewFakeConn
()
redis/connection/fake_conn.go:19
↓ 1 callers
Function
NewPersister
(db database.DBEngine, filename string, load bool, fsync int, tmpDBMaker func() database.DBEngine)
database/rdb/aof/aof.go:55
↓ 1 callers
Function
NewTransaction
NewTransaction 开启一个TCC本地事务
database/cluster/tcc/local_tx.go:45
↓ 1 callers
Function
PubSubCluster
(s *Server, args [][]byte)
database/publish.go:138
↓ 1 callers
Function
PublishCluster
(s *Server, args [][]byte)
database/publish.go:114
↓ 1 callers
Method
RWUnlocks
(writeKeys []string, readKeys []string)
datastruct/lock/lock_map.go:154
↓ 1 callers
Method
RangeByScore
RangeByScore returns members which score within the given border param limit: <0 means no limit
datastruct/sortedset/sortedset.go:184
↓ 1 callers
Method
RemoveAllByVal
(expected Expected)
datastruct/list/list.go:17
↓ 1 callers
Method
RemoveByRank
RemoveByRank removes member ranking within [start, stop) sort by ascending order and rank starts from 0
datastruct/sortedset/sortedset.go:223
↓ 1 callers
Method
RemoveByScore
RemoveByScore removes members which score within the given border
datastruct/sortedset/sortedset.go:197
↓ 1 callers
Method
RemoveByVal
(expected Expected, count int)
datastruct/list/list.go:18
↓ 1 callers
Method
RemoveJob
(key string)
lib/timewheel/timewheel.go:101
↓ 1 callers
Method
RemoveLast
()
datastruct/list/list.go:16
↓ 1 callers
Method
RemoveRangeByRank
1-based rank, including start, exclude stop
datastruct/sortedset/skiplist.go:317
↓ 1 callers
Method
ReverseRemoveByVal
(expected Expected, count int)
datastruct/list/list.go:19
↓ 1 callers
Method
SaveCmdLine
SaveCmdLine 用于向 aofChan 通道中发送一条命令。
database/rdb/aof/aof.go:239
↓ 1 callers
Method
SaveVersion
(cmdLine [][]byte)
database/cluster/tcc/local_tx.go:105
↓ 1 callers
Method
SelectDB
(int)
interface/redis/conn.go:13
↓ 1 callers
Method
SetAddAof
(addAof func(line CmdLine))
database/engine/db.go:157
↓ 1 callers
Method
SetIndex
(index int)
database/engine/db.go:151
↓ 1 callers
Method
SetPassword
(string)
interface/redis/conn.go:9
↓ 1 callers
Method
SetTxID
(string)
interface/redis/conn.go:26
↓ 1 callers
Function
SetupConfig
SetupConfig 读配置文件,加载配置文件
config/config.go:57
↓ 1 callers
Function
SetupLogger
()
logger/logger.go:10
↓ 1 callers
Method
Start
Start 开始时间轮
lib/timewheel/timewheel.go:63
↓ 1 callers
Method
StartCmdLine
()
redis/client/client.go:107
↓ 1 callers
Method
StartMultiCluster
StartMultiCluster 集群模式下执行multi命令
database/cluster/transaction.go:13
↓ 1 callers
Function
StartMultiStandalone
StartMultiStandalone 客户端开启 Multi 事务
database/transaction.go:9
↓ 1 callers
Method
StartRewrite
StartRewrite 暂停 AOF 写入 -> 准备重写 -> 恢复AOF写入。
database/rdb/aof/rewrite.go:64
↓ 1 callers
Method
Subscribe
Subscribe 向名字为name的管道中添加订阅者
database/publish/publish.go:14
↓ 1 callers
Method
TTLMap
()
database/engine/op_ttl.go:84
↓ 1 callers
Method
Try
(db *engine.DB, args [][]byte)
database/cluster/transaction.go:83
↓ 1 callers
Method
Try
Try TCC事务的结束try阶段,锁定key
database/cluster/tcc/local_tx.go:76
↓ 1 callers
Method
UnSubscribe
UnSubscribe 取消订阅消息
database/publish/publish.go:57
↓ 1 callers
Method
UnWatch
(client redis.Connection, args [][]byte)
database/cluster/transaction.go:203
↓ 1 callers
Method
Union
(another Set)
datastruct/set/set.go:11
↓ 1 callers
Method
Watch
(dbIndex int, db *engine.DB, client redis.Connection, args [][]byte)
database/cluster/transaction.go:181
↓ 1 callers
Method
addSubscriber
添加一个订阅者
database/publish/channel.go:45
↓ 1 callers
Method
addTask
(t *task)
lib/timewheel/timewheel.go:146
↓ 1 callers
Method
atBegin
是否在 -1 位置上
datastruct/list/iterator.go:119
↓ 1 callers
Method
autoAofRewrite
()
database/server.go:288
↓ 1 callers
Method
bindPersister
(aofPersister *aof.Persister)
database/persistence.go:24
↓ 1 callers
Method
checkActiveHeartbeat
(keepalive int)
redis/server/handler.go:127
↓ 1 callers
Method
checkVersionChanged
(watching map[string]uint32)
database/engine/version.go:20
↓ 1 callers
Function
computeCapacity
得到大于等于 param 的最小2次幂作为容量(最小16) 比如 input: 31 output:32 input: 60 output: 64 input: 5 output: 16
datastruct/dict/concurrent_dict.go:26
↓ 1 callers
Method
decreaseCount
()
datastruct/dict/concurrent_dict.go:335
↓ 1 callers
Method
deleteSubscriber
删除一个订阅者
database/publish/channel.go:59
↓ 1 callers
Method
doHeartbeat
()
redis/client/client.go:315
↓ 1 callers
Method
doRequest
(req *request)
redis/client/client.go:216
↓ 1 callers
Method
doSend
每一次发送消息的实际操作
database/publish/channel.go:99
↓ 1 callers
Method
execCluster
集群模式执行命令的方式
database/server.go:119
↓ 1 callers
Method
execNormalCommand
(cmdLine [][]byte)
database/engine/db.go:82
← previous
next →
201–300 of 569, ranked by callers