├── .gitignore ├── README.md ├── abstract ├── connection.go └── engine.go ├── aof ├── aof.go ├── cmd.go └── rewrite.go ├── cluster ├── cluster.go ├── conn_pool.go ├── mset.go ├── relay.go ├── router.go ├── tcc.go ├── tcc_test.go ├── transaction.go └── utils.go ├── datastruct ├── dict │ ├── concurrent.go │ └── dict.go ├── list │ └── linkedlist.go └── sortedset │ ├── border.go │ ├── skiplist.go │ ├── skiplist_test.go │ └── sortedset.go ├── doc ├── 1.tcp服务 │ ├── image-1.png │ ├── image-2.png │ ├── image-3.png │ ├── image-4.png │ ├── image.png │ └── tcp服务.md ├── 10.对象池 │ ├── image-1.png │ ├── image.png │ └── pool.md ├── 11.分布式集群 │ ├── cluster.md │ ├── image-1.png │ ├── image-2.png │ └── image.png ├── 12.分布式事务TCC │ ├── image.png │ ├── tcc.md │ └── transaction.png ├── 2.Redis序列化协议 │ ├── RESP.md │ └── image.png ├── 3.内存数据库 │ ├── image-1.png │ ├── image-2.png │ ├── image.png │ └── 内存数据库.md ├── 4.延迟算法(时间轮) │ ├── image-1.png │ ├── image-2.png │ ├── image-3.png │ ├── image.png │ └── 时间轮.md ├── 5.持久化之AOF │ ├── aof.md │ ├── image-1.png │ ├── image-2.png │ ├── image-3.png │ └── image.png ├── 6.发布订阅 │ ├── image-1.png │ ├── image-2.png │ ├── image-3.png │ ├── image.png │ └── 发布订阅.md ├── 7.跳表的实现 │ ├── image-1.png │ ├── image-2.png │ ├── image-3.png │ ├── image-4.png │ ├── image-5.png │ ├── image.png │ └── skiplist.md ├── 8.pipeline客户端 │ ├── client.md │ └── image.png └── 9.事务 │ ├── image-1.png │ ├── image.png │ └── 事务.md ├── engine ├── commoncmd.go ├── database.go ├── engine.go ├── keys.go ├── payload │ └── payload.go ├── register.go ├── sortedset.go ├── string.go ├── systemcmd.go ├── transaction.go └── utils.go ├── go.mod ├── go.sum ├── image-1.png ├── image-2.png ├── image-3.png ├── image.png ├── main.go ├── pubhub └── pubhub.go ├── redis-cli.sh ├── redis-cluster0.sh ├── redis-cluster1.sh ├── redis-cluster2.sh ├── redis ├── client │ ├── client.go │ └── client_test.go ├── connection │ ├── conn.go │ └── virtualconn.go ├── handler.go ├── parser │ └── parser.go └── protocol │ ├── basic.go │ ├── bulk.go │ ├── errors.go │ └── interface.go ├── redis0.conf ├── redis1.conf ├── redis2.conf ├── tcpserver └── tcpserver.go ├── test.conf ├── test.sh ├── tool ├── conf │ ├── config.go │ └── config_test.go ├── consistenthash │ ├── consistenthash.go │ └── consistenthash_test.go ├── idgenerator │ ├── snowflake.go │ └── snowflake_test.go ├── locker │ ├── locker.go │ └── locker_test.go ├── logger │ ├── logger.go │ └── logger_test.go ├── pool │ ├── pool.go │ └── pool_test.go ├── timewheel │ ├── delay.go │ ├── delay_test.go │ └── timewheel.go ├── wait │ └── wait.go └── wildcard │ ├── wildcard.go │ └── wildcard_test.go └── utils ├── cmdline.go ├── const.go ├── hash.go ├── logo.go ├── path.go └── rand.go /.gitignore: -------------------------------------------------------------------------------- 1 | logs 2 | *.aof 3 | tmp 4 | data -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/README.md -------------------------------------------------------------------------------- /abstract/connection.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/abstract/connection.go -------------------------------------------------------------------------------- /abstract/engine.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/abstract/engine.go -------------------------------------------------------------------------------- /aof/aof.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/aof/aof.go -------------------------------------------------------------------------------- /aof/cmd.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/aof/cmd.go -------------------------------------------------------------------------------- /aof/rewrite.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/aof/rewrite.go -------------------------------------------------------------------------------- /cluster/cluster.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/cluster/cluster.go -------------------------------------------------------------------------------- /cluster/conn_pool.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/cluster/conn_pool.go -------------------------------------------------------------------------------- /cluster/mset.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/cluster/mset.go -------------------------------------------------------------------------------- /cluster/relay.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/cluster/relay.go -------------------------------------------------------------------------------- /cluster/router.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/cluster/router.go -------------------------------------------------------------------------------- /cluster/tcc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/cluster/tcc.go -------------------------------------------------------------------------------- /cluster/tcc_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/cluster/tcc_test.go -------------------------------------------------------------------------------- /cluster/transaction.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/cluster/transaction.go -------------------------------------------------------------------------------- /cluster/utils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/cluster/utils.go -------------------------------------------------------------------------------- /datastruct/dict/concurrent.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/datastruct/dict/concurrent.go -------------------------------------------------------------------------------- /datastruct/dict/dict.go: -------------------------------------------------------------------------------- 1 | package dict 2 | 3 | type Consumer func(key string, val interface{}) bool 4 | -------------------------------------------------------------------------------- /datastruct/list/linkedlist.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/datastruct/list/linkedlist.go -------------------------------------------------------------------------------- /datastruct/sortedset/border.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/datastruct/sortedset/border.go -------------------------------------------------------------------------------- /datastruct/sortedset/skiplist.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/datastruct/sortedset/skiplist.go -------------------------------------------------------------------------------- /datastruct/sortedset/skiplist_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/datastruct/sortedset/skiplist_test.go -------------------------------------------------------------------------------- /datastruct/sortedset/sortedset.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/datastruct/sortedset/sortedset.go -------------------------------------------------------------------------------- /doc/1.tcp服务/image-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/1.tcp服务/image-1.png -------------------------------------------------------------------------------- /doc/1.tcp服务/image-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/1.tcp服务/image-2.png -------------------------------------------------------------------------------- /doc/1.tcp服务/image-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/1.tcp服务/image-3.png -------------------------------------------------------------------------------- /doc/1.tcp服务/image-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/1.tcp服务/image-4.png -------------------------------------------------------------------------------- /doc/1.tcp服务/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/1.tcp服务/image.png -------------------------------------------------------------------------------- /doc/1.tcp服务/tcp服务.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/1.tcp服务/tcp服务.md -------------------------------------------------------------------------------- /doc/10.对象池/image-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/10.对象池/image-1.png -------------------------------------------------------------------------------- /doc/10.对象池/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/10.对象池/image.png -------------------------------------------------------------------------------- /doc/10.对象池/pool.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/10.对象池/pool.md -------------------------------------------------------------------------------- /doc/11.分布式集群/cluster.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/11.分布式集群/cluster.md -------------------------------------------------------------------------------- /doc/11.分布式集群/image-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/11.分布式集群/image-1.png -------------------------------------------------------------------------------- /doc/11.分布式集群/image-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/11.分布式集群/image-2.png -------------------------------------------------------------------------------- /doc/11.分布式集群/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/11.分布式集群/image.png -------------------------------------------------------------------------------- /doc/12.分布式事务TCC/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/12.分布式事务TCC/image.png -------------------------------------------------------------------------------- /doc/12.分布式事务TCC/tcc.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/12.分布式事务TCC/tcc.md -------------------------------------------------------------------------------- /doc/12.分布式事务TCC/transaction.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/12.分布式事务TCC/transaction.png -------------------------------------------------------------------------------- /doc/2.Redis序列化协议/RESP.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/2.Redis序列化协议/RESP.md -------------------------------------------------------------------------------- /doc/2.Redis序列化协议/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/2.Redis序列化协议/image.png -------------------------------------------------------------------------------- /doc/3.内存数据库/image-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/3.内存数据库/image-1.png -------------------------------------------------------------------------------- /doc/3.内存数据库/image-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/3.内存数据库/image-2.png -------------------------------------------------------------------------------- /doc/3.内存数据库/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/3.内存数据库/image.png -------------------------------------------------------------------------------- /doc/3.内存数据库/内存数据库.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/3.内存数据库/内存数据库.md -------------------------------------------------------------------------------- /doc/4.延迟算法(时间轮)/image-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/4.延迟算法(时间轮)/image-1.png -------------------------------------------------------------------------------- /doc/4.延迟算法(时间轮)/image-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/4.延迟算法(时间轮)/image-2.png -------------------------------------------------------------------------------- /doc/4.延迟算法(时间轮)/image-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/4.延迟算法(时间轮)/image-3.png -------------------------------------------------------------------------------- /doc/4.延迟算法(时间轮)/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/4.延迟算法(时间轮)/image.png -------------------------------------------------------------------------------- /doc/4.延迟算法(时间轮)/时间轮.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/4.延迟算法(时间轮)/时间轮.md -------------------------------------------------------------------------------- /doc/5.持久化之AOF/aof.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/5.持久化之AOF/aof.md -------------------------------------------------------------------------------- /doc/5.持久化之AOF/image-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/5.持久化之AOF/image-1.png -------------------------------------------------------------------------------- /doc/5.持久化之AOF/image-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/5.持久化之AOF/image-2.png -------------------------------------------------------------------------------- /doc/5.持久化之AOF/image-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/5.持久化之AOF/image-3.png -------------------------------------------------------------------------------- /doc/5.持久化之AOF/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/5.持久化之AOF/image.png -------------------------------------------------------------------------------- /doc/6.发布订阅/image-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/6.发布订阅/image-1.png -------------------------------------------------------------------------------- /doc/6.发布订阅/image-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/6.发布订阅/image-2.png -------------------------------------------------------------------------------- /doc/6.发布订阅/image-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/6.发布订阅/image-3.png -------------------------------------------------------------------------------- /doc/6.发布订阅/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/6.发布订阅/image.png -------------------------------------------------------------------------------- /doc/6.发布订阅/发布订阅.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/6.发布订阅/发布订阅.md -------------------------------------------------------------------------------- /doc/7.跳表的实现/image-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/7.跳表的实现/image-1.png -------------------------------------------------------------------------------- /doc/7.跳表的实现/image-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/7.跳表的实现/image-2.png -------------------------------------------------------------------------------- /doc/7.跳表的实现/image-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/7.跳表的实现/image-3.png -------------------------------------------------------------------------------- /doc/7.跳表的实现/image-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/7.跳表的实现/image-4.png -------------------------------------------------------------------------------- /doc/7.跳表的实现/image-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/7.跳表的实现/image-5.png -------------------------------------------------------------------------------- /doc/7.跳表的实现/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/7.跳表的实现/image.png -------------------------------------------------------------------------------- /doc/7.跳表的实现/skiplist.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/7.跳表的实现/skiplist.md -------------------------------------------------------------------------------- /doc/8.pipeline客户端/client.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/8.pipeline客户端/client.md -------------------------------------------------------------------------------- /doc/8.pipeline客户端/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/8.pipeline客户端/image.png -------------------------------------------------------------------------------- /doc/9.事务/image-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/9.事务/image-1.png -------------------------------------------------------------------------------- /doc/9.事务/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/9.事务/image.png -------------------------------------------------------------------------------- /doc/9.事务/事务.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/doc/9.事务/事务.md -------------------------------------------------------------------------------- /engine/commoncmd.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/engine/commoncmd.go -------------------------------------------------------------------------------- /engine/database.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/engine/database.go -------------------------------------------------------------------------------- /engine/engine.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/engine/engine.go -------------------------------------------------------------------------------- /engine/keys.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/engine/keys.go -------------------------------------------------------------------------------- /engine/payload/payload.go: -------------------------------------------------------------------------------- 1 | package payload 2 | 3 | // 定义底层的数据存储对象 4 | type DataEntity struct { 5 | RedisObject interface{} // 字符串 跳表 链表 quicklist 集合 etc... 6 | } 7 | -------------------------------------------------------------------------------- /engine/register.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/engine/register.go -------------------------------------------------------------------------------- /engine/sortedset.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/engine/sortedset.go -------------------------------------------------------------------------------- /engine/string.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/engine/string.go -------------------------------------------------------------------------------- /engine/systemcmd.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/engine/systemcmd.go -------------------------------------------------------------------------------- /engine/transaction.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/engine/transaction.go -------------------------------------------------------------------------------- /engine/utils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/engine/utils.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/go.sum -------------------------------------------------------------------------------- /image-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/image-1.png -------------------------------------------------------------------------------- /image-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/image-2.png -------------------------------------------------------------------------------- /image-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/image-3.png -------------------------------------------------------------------------------- /image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/image.png -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/main.go -------------------------------------------------------------------------------- /pubhub/pubhub.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/pubhub/pubhub.go -------------------------------------------------------------------------------- /redis-cli.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/redis-cli.sh -------------------------------------------------------------------------------- /redis-cluster0.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/redis-cluster0.sh -------------------------------------------------------------------------------- /redis-cluster1.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/redis-cluster1.sh -------------------------------------------------------------------------------- /redis-cluster2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/redis-cluster2.sh -------------------------------------------------------------------------------- /redis/client/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/redis/client/client.go -------------------------------------------------------------------------------- /redis/client/client_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/redis/client/client_test.go -------------------------------------------------------------------------------- /redis/connection/conn.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/redis/connection/conn.go -------------------------------------------------------------------------------- /redis/connection/virtualconn.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/redis/connection/virtualconn.go -------------------------------------------------------------------------------- /redis/handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/redis/handler.go -------------------------------------------------------------------------------- /redis/parser/parser.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/redis/parser/parser.go -------------------------------------------------------------------------------- /redis/protocol/basic.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/redis/protocol/basic.go -------------------------------------------------------------------------------- /redis/protocol/bulk.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/redis/protocol/bulk.go -------------------------------------------------------------------------------- /redis/protocol/errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/redis/protocol/errors.go -------------------------------------------------------------------------------- /redis/protocol/interface.go: -------------------------------------------------------------------------------- 1 | package protocol 2 | 3 | type Reply interface { 4 | ToBytes() []byte 5 | } 6 | -------------------------------------------------------------------------------- /redis0.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/redis0.conf -------------------------------------------------------------------------------- /redis1.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/redis1.conf -------------------------------------------------------------------------------- /redis2.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/redis2.conf -------------------------------------------------------------------------------- /tcpserver/tcpserver.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/tcpserver/tcpserver.go -------------------------------------------------------------------------------- /test.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/test.conf -------------------------------------------------------------------------------- /test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/test.sh -------------------------------------------------------------------------------- /tool/conf/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/tool/conf/config.go -------------------------------------------------------------------------------- /tool/conf/config_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/tool/conf/config_test.go -------------------------------------------------------------------------------- /tool/consistenthash/consistenthash.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/tool/consistenthash/consistenthash.go -------------------------------------------------------------------------------- /tool/consistenthash/consistenthash_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/tool/consistenthash/consistenthash_test.go -------------------------------------------------------------------------------- /tool/idgenerator/snowflake.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/tool/idgenerator/snowflake.go -------------------------------------------------------------------------------- /tool/idgenerator/snowflake_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/tool/idgenerator/snowflake_test.go -------------------------------------------------------------------------------- /tool/locker/locker.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/tool/locker/locker.go -------------------------------------------------------------------------------- /tool/locker/locker_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/tool/locker/locker_test.go -------------------------------------------------------------------------------- /tool/logger/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/tool/logger/logger.go -------------------------------------------------------------------------------- /tool/logger/logger_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/tool/logger/logger_test.go -------------------------------------------------------------------------------- /tool/pool/pool.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/tool/pool/pool.go -------------------------------------------------------------------------------- /tool/pool/pool_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/tool/pool/pool_test.go -------------------------------------------------------------------------------- /tool/timewheel/delay.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/tool/timewheel/delay.go -------------------------------------------------------------------------------- /tool/timewheel/delay_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/tool/timewheel/delay_test.go -------------------------------------------------------------------------------- /tool/timewheel/timewheel.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/tool/timewheel/timewheel.go -------------------------------------------------------------------------------- /tool/wait/wait.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/tool/wait/wait.go -------------------------------------------------------------------------------- /tool/wildcard/wildcard.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/tool/wildcard/wildcard.go -------------------------------------------------------------------------------- /tool/wildcard/wildcard_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/tool/wildcard/wildcard_test.go -------------------------------------------------------------------------------- /utils/cmdline.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/utils/cmdline.go -------------------------------------------------------------------------------- /utils/const.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/utils/const.go -------------------------------------------------------------------------------- /utils/hash.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/utils/hash.go -------------------------------------------------------------------------------- /utils/logo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/utils/logo.go -------------------------------------------------------------------------------- /utils/path.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/utils/path.go -------------------------------------------------------------------------------- /utils/rand.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gofish2020/easyredis/HEAD/utils/rand.go --------------------------------------------------------------------------------