Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dawnzzz/simple-redis
/ types & classes
Types & classes
78 in github.com/dawnzzz/simple-redis
⨍
Functions
569
◇
Types & classes
78
Struct
AofExpireCtx
AofExpireCtx 记录在执行命令时,是否需要AOF持久化,是否有过期时间
database/engine/router.go:10
Struct
ArgNumErrReply
ArgNumErrReply represents wrong number of arguments for command
redis/protocol/reply/err_reply.go:38
TypeAlias
Boolean
lib/sync/atomic/bool.go:5
Struct
BulkStringReply
redis/protocol/reply/bulk_string_reply.go:5
FuncType
CheckAliveFunc
func(x interface{}) bool
lib/pool/pool.go:11
Struct
Client
redis/client/client.go:28
Struct
Cluster
Cluster 用于和集群中的主机进行交互
database/cluster/cluster.go:19
TypeAlias
CmdLine
database/rdb/aof/aof.go:26
TypeAlias
CmdLine
redis/connection/conn.go:12
Struct
ConcurrentDict
datastruct/dict/concurrent_dict.go:11
Struct
Config
lib/pool/pool.go:19
Interface
Connection
Connection represents a connection with a client
interface/redis/conn.go:4
Struct
Connection
Connection represents a connection with a client
redis/connection/conn.go:15
FuncType
Consumer
Consumer traverses list. It receives index and value as params, returns true to continue traversal, while returns false to break
datastruct/list/list.go:8
FuncType
Consumer
Consumer is used to traversal dict, if it returns false the traversal will be break
datastruct/dict/dict.go:4
Struct
Coordinator
Coordinator TCC事务协调者
database/cluster/tcc/coordinator.go:13
Interface
DB
DB is the interface for redis style storage engine
interface/database/db.go:12
Struct
DB
database/engine/db.go:20
Interface
DBEngine
DBEngine is the embedding storage engine exposing more methods for complex application
interface/database/db.go:19
Struct
DataEntity
DataEntity stores data bound to a key, including a string, list, hash, set and so on
interface/database/db.go:31
Interface
Dict
Dict is interface of a key-value data structure
datastruct/dict/dict.go:7
Struct
Element
datastruct/sortedset/skiplist.go:12
Struct
EmptyMultiBulkStringReply
redis/protocol/reply/multi_bulk_string_reply.go:48
Interface
ErrorReply
redis/protocol/reply/err_reply.go:5
FuncType
ExecFunc
ExecFunc is interface for command executor args don't include cmd line
database/engine/router.go:17
FuncType
Expected
Expected check whether given item is equals to expected value
datastruct/list/list.go:4
FuncType
FactoryFunc
func() (interface{}, error)
lib/pool/pool.go:9
Struct
FakeConn
redis/connection/fake_conn.go:10
FuncType
FinalizerFunc
func(x interface{})
lib/pool/pool.go:10
FuncType
HandleFunc
func(ctx context.Context, conn net.Conn)
interface/tcp/handler.go:8
Interface
Handler
interface/tcp/handler.go:10
Struct
Handler
redis/server/handler.go:24
FuncType
HashFunc
HashFunc defines function to generate hash code
lib/consistenthash/consistenthash.go:10
Struct
IntReply
IntReply stores an int64 number
redis/protocol/reply/int_reply.go:6
Struct
Level
datastruct/sortedset/skiplist.go:17
Interface
List
datastruct/list/list.go:10
Struct
Locks
datastruct/lock/lock_map.go:8
Struct
Map
lib/consistenthash/consistenthash.go:12
Struct
MultiBulkStringReply
redis/protocol/reply/multi_bulk_string_reply.go:9
Struct
NoReply
NoReply respond nothing, for commands like subscribe
redis/protocol/reply/status_reply.go:69
Struct
NullBulkStringReply
redis/protocol/reply/bulk_string_reply.go:28
Struct
OkReply
* OK REPLY */ OkReply is +OK
redis/protocol/reply/status_reply.go:26
Struct
Payload
redis/parser/parser.go:14
Interface
PeerGetter
interface/cluster/cluster.go:11
Interface
PeerPicker
interface/cluster/cluster.go:5
Struct
Persister
database/rdb/aof/aof.go:32
Struct
PongReply
* PONG REPLY */
redis/protocol/reply/status_reply.go:48
Struct
Pool
Pool 连接池
lib/pool/pool.go:26
FuncType
PreFunc
PreFunc returns related write keys and read keys
database/engine/router.go:20
Struct
Publish
database/publish/publish.go:8
Struct
QuickList
QuickList 快速链表,用于实现list
datastruct/list/quick_list.go:12
Interface
Reply
Reply 表示 redis 序列化协议中的一条消息
interface/redis/reply.go:4
Struct
RewriteCtx
database/rdb/aof/rewrite.go:18
Struct
ScoreBorder
ScoreBorder represents range of a float value, including: <, <=, >, >=, +inf, -inf
datastruct/sortedset/border.go:22
Struct
Server
Server is a redis-server
database/server.go:24
Struct
ServerProperties
ServerProperties 服务器配置
config/config.go:10
Interface
Set
datastruct/set/set.go:3
Struct
SimpleDict
SimpleDict 简单的mapp,非线程安全,用于aof重写建立的临时辅助数据库
datastruct/dict/simple_dict.go:4
Struct
SimpleSet
datastruct/set/simple_set.go:5
Struct
SortedSet
datastruct/sortedset/sortedset.go:5
Struct
StandardErrReply
redis/protocol/reply/err_reply.go:10
Struct
StatusReply
StatusReply 记录 RESP 中的状态信息(以+开头的信息)
redis/protocol/reply/status_reply.go:4
Struct
SyntaxErrReply
SyntaxErrReply represents meeting unexpected arguments
redis/protocol/reply/err_reply.go:63
Struct
TimeWheel
lib/timewheel/timewheel.go:9
Struct
Transaction
Transaction TCC本地事务
database/cluster/tcc/local_tx.go:27
Struct
Wait
Wait a sync.WaitGroup with timeout
lib/sync/wait/wait.go:9
Struct
WrongTypeErrReply
WrongTypeErrReply represents operation against a key holding the wrong kind of value
redis/protocol/reply/err_reply.go:87
Struct
channel
database/publish/channel.go:22
Struct
command
database/engine/router.go:24
Struct
getter
database/cluster/getter.go:13
Struct
iterator
迭代器,在[-1, ql.Len()]之间移动
datastruct/list/iterator.go:6
Struct
location
lib/timewheel/timewheel.go:23
Struct
node
datastruct/sortedset/skiplist.go:22
Struct
payload
database/rdb/aof/aof.go:50
Struct
request
redis/client/client.go:44
Struct
shard
datastruct/dict/concurrent_dict.go:17
Struct
skipList
跳跃链表
datastruct/sortedset/skiplist.go:29
Struct
task
lib/timewheel/timewheel.go:28