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
↓ 104 callers
Function
MakeErrReply
(status string)
redis/protocol/reply/err_reply.go:14
↓ 61 callers
Function
RegisterCommand
RegisterCommand registers a new command arity means allowed number of cmdArgs, arity < 0 means len(args) >= -arity. for example: the arity of `get` is
database/engine/router.go:39
↓ 59 callers
Function
MakeIntReply
MakeIntReply creates int protocol
redis/protocol/reply/int_reply.go:11
↓ 36 callers
Method
Len
()
datastruct/set/set.go:7
↓ 36 callers
Function
MakeMultiBulkStringReply
(args [][]byte)
redis/protocol/reply/multi_bulk_string_reply.go:13
↓ 35 callers
Method
Error
()
redis/protocol/reply/err_reply.go:7
↓ 28 callers
Method
Close
()
interface/database/db.go:15
↓ 28 callers
Method
Get
(index int)
datastruct/list/list.go:12
↓ 27 callers
Method
Add
(val string)
datastruct/set/set.go:4
↓ 27 callers
Method
Lock
(key string)
datastruct/lock/lock_map.go:48
↓ 27 callers
Method
Unlock
(key string)
datastruct/lock/lock_map.go:56
↓ 24 callers
Function
MakeArgNumErrReply
MakeArgNumErrReply represents wrong number of arguments for command
redis/protocol/reply/err_reply.go:56
↓ 23 callers
Function
MakeOkReply
()
redis/protocol/reply/status_reply.go:33
↓ 22 callers
Function
StringsToCmdLine
StringsToCmdLine convert strings to [][]byte
lib/utils/utils.go:4
↓ 19 callers
Method
GetEntity
* ---- Data Access ----- */ GetEntity returns DataEntity bind to given key
database/engine/op_data.go:11
↓ 17 callers
Method
ForEach
(consumer func(member string) bool)
datastruct/set/set.go:9
↓ 17 callers
Method
Remove
(val string)
datastruct/set/set.go:5
↓ 16 callers
Function
Error
(args ...interface{})
logger/logger.go:40
↓ 16 callers
Function
MakeEmptyMultiBulkStringReply
()
redis/protocol/reply/multi_bulk_string_reply.go:51
↓ 16 callers
Function
MakeNullBulkStringReply
()
redis/protocol/reply/bulk_string_reply.go:31
↓ 16 callers
Method
Write
([]byte)
interface/redis/conn.go:5
↓ 15 callers
Method
ToBytes
()
interface/redis/reply.go:5
↓ 14 callers
Function
IsErrorReply
IsErrorReply returns true if the given protocol is error
redis/protocol/reply/err_reply.go:33
↓ 13 callers
Method
GetMultiStatus
()
interface/redis/conn.go:17
↓ 13 callers
Method
Put
(key string, val interface{})
datastruct/dict/dict.go:10
↓ 12 callers
Method
Done
()
lib/sync/wait/wait.go:17
↓ 12 callers
Method
PutEntity
PutEntity a DataEntity into DB
database/engine/op_data.go:28
↓ 11 callers
Function
Info
(args ...interface{})
logger/logger.go:24
↓ 11 callers
Function
getAsList
(db *engine.DB, key string)
database/commands/list.go:355
↓ 11 callers
Function
getAsSet
(db *engine.DB, key string)
database/commands/set.go:303
↓ 11 callers
Function
getAsSortedSet
(db *engine.DB, key string)
database/commands/sortedset.go:433
↓ 11 callers
Method
notInit
检查 ConcurrentDict 是否没有初始化,没有初始化则返回 true
datastruct/dict/concurrent_dict.go:72
↓ 10 callers
Function
MakeBulkStringReply
(Arg []byte)
redis/protocol/reply/bulk_string_reply.go:9
↓ 10 callers
Method
find
获取 index 位置上的迭代器
datastruct/list/iterator.go:13
↓ 9 callers
Method
RemoteExec
(dbIndex int, args [][]byte)
interface/cluster/cluster.go:12
↓ 8 callers
Function
ParseScoreBorder
ParseScoreBorder creates ScoreBorder from redis arguments
datastruct/sortedset/border.go:63
↓ 8 callers
Method
PutIfAbsent
(key string, val interface{})
datastruct/dict/dict.go:11
↓ 7 callers
Method
Exec
(client redis.Connection, cmdLine [][]byte)
interface/database/db.go:13
↓ 7 callers
Method
GetDBIndex
()
interface/redis/conn.go:12
↓ 7 callers
Function
fnv32
(key string)
datastruct/lock/lock_map.go:24
↓ 7 callers
Method
get
()
datastruct/list/iterator.go:55
↓ 7 callers
Function
getAsDict
(db *engine.DB, key string)
database/commands/hash.go:222
↓ 7 callers
Method
getShard
(index uint32)
datastruct/dict/concurrent_dict.go:86
↓ 7 callers
Method
page
()
datastruct/list/iterator.go:59
↓ 7 callers
Method
selectDB
(dbIndex int)
database/server.go:246
↓ 7 callers
Method
spread
(hashcode uint32)
datastruct/lock/lock_map.go:38
↓ 6 callers
Method
CancelWatching
()
interface/redis/conn.go:25
↓ 6 callers
Function
MakeSimpleDict
()
datastruct/dict/simple_dict.go:8
↓ 6 callers
Method
Send
Send sends a request to redis server
redis/client/client.go:177
↓ 6 callers
Method
SetMultiStatus
(bool)
interface/redis/conn.go:18
↓ 6 callers
Method
Wait
()
lib/sync/wait/wait.go:21
↓ 6 callers
Function
Warn
(args ...interface{})
logger/logger.go:36
↓ 6 callers
Method
greater
if max.greater(score) then the score is within the upper border do not use min.greater()
datastruct/sortedset/border.go:30
↓ 6 callers
Method
less
(value float64)
datastruct/sortedset/border.go:42
↓ 6 callers
Method
toLockIndices
reverse is true, small to big; reverse is false, big to small
datastruct/lock/lock_map.go:81
↓ 5 callers
Method
Get
(key string)
datastruct/dict/dict.go:8
↓ 5 callers
Method
GetVersion
GetVersion 获取指定key值的版本号
database/engine/version.go:12
↓ 5 callers
Method
GetWatching
()
interface/redis/conn.go:24
↓ 5 callers
Function
MakeConcurrentDict
(shardCount int)
datastruct/dict/concurrent_dict.go:44
↓ 5 callers
Method
RLock
(key string)
datastruct/lock/lock_map.go:64
↓ 5 callers
Method
RUnlock
(key string)
datastruct/lock/lock_map.go:72
↓ 5 callers
Method
RWLocks
* ---- Lock Function ----- */ RWLocks lock keys for writing and reading
database/engine/op_lock.go:6
↓ 5 callers
Method
RWUnLocks
RWUnLocks unlock keys for writing and reading
database/engine/op_lock.go:11
↓ 5 callers
Method
Stop
Stop 停止时间轮
lib/timewheel/timewheel.go:85
↓ 5 callers
Function
fnv32
(key string)
datastruct/dict/concurrent_dict.go:62
↓ 5 callers
Function
protocolError
(ch chan<- *Payload, msg string)
redis/parser/parser.go:160
↓ 5 callers
Method
remove
()
datastruct/list/iterator.go:134
↓ 5 callers
Method
spread
(hashcode uint32)
datastruct/dict/concurrent_dict.go:76
↓ 4 callers
Method
ExecInPeer
(peer string, dbIndex int, cmdLine [][]byte)
database/cluster/cluster.go:80
↓ 4 callers
Method
Expire
Expire set expire time of key
database/engine/op_ttl.go:17
↓ 4 callers
Function
GetAsString
(db *engine.DB, key string)
database/commands/string.go:210
↓ 4 callers
Method
Len
()
datastruct/list/quick_list.go:190
↓ 4 callers
Function
MakeStatusReply
MakeStatusReply 创建一个 StatusReply
redis/protocol/reply/status_reply.go:9
↓ 4 callers
Method
PutIfExists
(key string, val interface{})
datastruct/dict/dict.go:12
↓ 4 callers
Method
Range
(start int, stop int)
datastruct/list/list.go:23
↓ 4 callers
Method
RemoteAddr
RemoteAddr returns the remote network address
redis/connection/conn.go:46
↓ 4 callers
Method
Remove
Remove the given key from db
database/engine/op_data.go:43
↓ 4 callers
Method
SubscribersNum
(names ...string)
database/publish/publish.go:90
↓ 4 callers
Method
WaitWithTimeout
WaitWithTimeout blocks until the WaitGroup counter is zero or timeout returns true if timeout
lib/sync/wait/wait.go:27
↓ 4 callers
Function
doIncrBy
(db *engine.DB, key string, by int64)
database/commands/string.go:222
↓ 4 callers
Method
genExpireTaskKey
* ---- TTL Functions ---- */
database/engine/op_ttl.go:12
↓ 4 callers
Method
next
()
datastruct/list/iterator.go:63
↓ 3 callers
Method
AddVersion
AddVersion 为指定的keys版本号+1
database/engine/version.go:4
↓ 3 callers
Function
Cancel
Cancel stops a pending job
lib/timewheel/delay.go:22
↓ 3 callers
Method
CheckSyntaxErr
(cmdLine [][]byte)
database/engine/db.go:185
↓ 3 callers
Method
Contains
(expected Expected)
datastruct/list/list.go:22
↓ 3 callers
Method
DataString
()
interface/redis/reply.go:6
↓ 3 callers
Function
Debug
(args ...interface{})
logger/logger.go:16
↓ 3 callers
Function
Delay
Delay executes job after waiting the given duration
lib/timewheel/delay.go:12
↓ 3 callers
Method
EnqueueSyntaxErrQueue
(Reply)
interface/redis/conn.go:23
↓ 3 callers
Method
ExecWithLock
(cmdLine CmdLine)
database/engine/db.go:108
↓ 3 callers
Function
Fatalf
(format string, args ...interface{})
logger/logger.go:48
↓ 3 callers
Method
ForEach
(consumer func(member string) bool)
datastruct/set/simple_set.go:51
↓ 3 callers
Method
GetSubscribeNum
()
interface/redis/conn.go:31
↓ 3 callers
Function
IsReadOnlyCommand
(name string)
database/engine/router.go:49
↓ 3 callers
Method
Len
()
datastruct/list/list.go:20
↓ 3 callers
Method
Len
()
datastruct/dict/concurrent_dict.go:111
↓ 3 callers
Function
Make
(tableSize int)
datastruct/lock/lock_map.go:12
↓ 3 callers
Function
MakeSimpleSet
(members ...string)
datastruct/set/simple_set.go:9
↓ 3 callers
Function
MakeSyntaxErrReply
MakeSyntaxErrReply creates syntax error
redis/protocol/reply/err_reply.go:69
next →
1–100 of 569, ranked by callers