├── .github └── workflows │ ├── docker.yaml │ ├── goci.yaml │ └── release.yaml ├── .gitignore ├── Dockerfile ├── LICENSE ├── Makefile ├── README.md ├── README_ZH.md ├── cmd ├── aof.go ├── cmd.go ├── diff.go ├── rdb.go ├── syncer.go ├── syncer_api.go └── syncer_test.go ├── config ├── cluster-standalone.yaml ├── cluster.yaml ├── cluster2.yaml ├── config.go ├── config_test.go ├── flags.go ├── rdb_load.yaml ├── standalone.yaml ├── standalone2.yaml └── var.go ├── deploy ├── grafana_en.json └── grafana_zh.json ├── docker └── demo │ ├── Dockerfile │ ├── gunyu.yaml │ ├── redis1.conf │ ├── redis2.conf │ └── start.sh ├── docs ├── API_en.md ├── API_zh.md ├── attentions_en.md ├── attentions_zh.md ├── configuration_en.md ├── configuration_zh.md ├── deployment_en.md ├── deployment_zh.md ├── imgs │ ├── arch.png │ ├── arch_en.png │ ├── sync.png │ └── sync_en.png ├── rdb_en.md ├── rdb_zh.md ├── sync_configuration_en.md ├── sync_configuration_zh.md ├── tech_en.md ├── tech_zh.md ├── test_en.md └── test_zh.md ├── go.mod ├── go.sum ├── main.go ├── pkg ├── api │ ├── api.proto │ ├── gen.sh │ ├── golang │ │ └── api.pb.go │ ├── google │ │ └── api │ │ │ ├── annotations.proto │ │ │ ├── http.proto │ │ │ └── httpbody.proto │ └── server.go ├── cluster │ ├── cluster.go │ ├── cluster_test.go │ ├── etcd_cluster.go │ ├── etcd_election.go │ ├── redis_cluster.go │ ├── redis_cluster_test.go │ └── redis_election.go ├── common │ └── error.go ├── digest │ ├── crc16.go │ └── crc64.go ├── errors │ └── errors.go ├── filter │ ├── commands.go │ ├── filter.go │ ├── filter_test.go │ ├── range.go │ ├── trie.go │ └── trie_test.go ├── io │ ├── fs │ │ └── dir.go │ ├── net │ │ ├── util.go │ │ └── util_test.go │ └── pipe │ │ ├── assert.go │ │ ├── buff.go │ │ ├── file.go │ │ ├── pipe.go │ │ ├── pipe_test.go │ │ └── pipeio.go ├── log │ ├── log.go │ └── logger.go ├── metric │ ├── counter.go │ ├── guage.go │ ├── histogram.go │ ├── opts.go │ ├── pusher.go │ └── timer.go ├── rdb │ ├── const.go │ ├── loader.go │ ├── loader_test.go │ ├── rdb.go │ ├── rdb_object.go │ └── reader.go ├── rdbrestore │ └── restore.go ├── redis │ ├── checkpoint │ │ ├── checkpoint.go │ │ ├── checkpoint_info.go │ │ └── checkpoint_test.go │ ├── client │ │ ├── cluster.go │ │ ├── cluster │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── batch.go │ │ │ ├── batch_pipe.go │ │ │ ├── batcher_test.go │ │ │ ├── cluster.go │ │ │ ├── cluster_test.go │ │ │ ├── conn.go │ │ │ ├── conn_test.go │ │ │ ├── multi.go │ │ │ ├── node.go │ │ │ ├── node_test.go │ │ │ └── txn_batcher.go │ │ ├── common │ │ │ ├── batcher.go │ │ │ ├── err.go │ │ │ ├── resp.go │ │ │ └── type.go │ │ ├── conn │ │ │ ├── redis_conn.go │ │ │ └── redis_conn_test.go │ │ ├── decoder.go │ │ ├── encoder.go │ │ ├── handler.go │ │ ├── proto │ │ │ ├── README.md │ │ │ ├── reader.go │ │ │ ├── scan.go │ │ │ └── writer.go │ │ ├── redis.go │ │ ├── resp.go │ │ └── util.go │ ├── cluster_slot.go │ ├── cluster_slot_test.go │ ├── psync.go │ ├── redis_lock.go │ ├── redis_lock_test.go │ ├── slot.go │ ├── types │ │ ├── listpack.go │ │ └── ziplist.go │ ├── util.go │ └── util_test.go ├── store │ ├── aof_reader.go │ ├── aof_reader_test.go │ ├── aof_writer.go │ ├── ds.go │ ├── ds_test.go │ ├── rdb_reader.go │ ├── rdb_reader_test.go │ ├── rdb_writer.go │ ├── reader.go │ ├── store.go │ ├── store_test.go │ └── util.go ├── sync │ ├── close_wait.go │ ├── con_group.go │ ├── routine.go │ └── sema.go ├── util │ ├── conditional.go │ ├── convert.go │ ├── cron.go │ ├── exec.go │ ├── hash.go │ ├── recover.go │ ├── retry.go │ ├── safe_rand.go │ ├── slice_buffer.go │ ├── stop.go │ ├── strconv.go │ ├── trace.go │ ├── trace_test.go │ ├── unsafe.go │ ├── version.go │ ├── version_test.go │ └── xtime.go └── version │ └── version.go └── syncer ├── channel.go ├── input.go ├── output.go ├── replica.go ├── sm.go ├── syncer.go ├── syncer_replica.go └── transaction.go /.github/workflows/docker.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/.github/workflows/docker.yaml -------------------------------------------------------------------------------- /.github/workflows/goci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/.github/workflows/goci.yaml -------------------------------------------------------------------------------- /.github/workflows/release.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/.github/workflows/release.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/README.md -------------------------------------------------------------------------------- /README_ZH.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/README_ZH.md -------------------------------------------------------------------------------- /cmd/aof.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/cmd/aof.go -------------------------------------------------------------------------------- /cmd/cmd.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/cmd/cmd.go -------------------------------------------------------------------------------- /cmd/diff.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/cmd/diff.go -------------------------------------------------------------------------------- /cmd/rdb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/cmd/rdb.go -------------------------------------------------------------------------------- /cmd/syncer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/cmd/syncer.go -------------------------------------------------------------------------------- /cmd/syncer_api.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/cmd/syncer_api.go -------------------------------------------------------------------------------- /cmd/syncer_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/cmd/syncer_test.go -------------------------------------------------------------------------------- /config/cluster-standalone.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/config/cluster-standalone.yaml -------------------------------------------------------------------------------- /config/cluster.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/config/cluster.yaml -------------------------------------------------------------------------------- /config/cluster2.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/config/cluster2.yaml -------------------------------------------------------------------------------- /config/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/config/config.go -------------------------------------------------------------------------------- /config/config_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/config/config_test.go -------------------------------------------------------------------------------- /config/flags.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/config/flags.go -------------------------------------------------------------------------------- /config/rdb_load.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/config/rdb_load.yaml -------------------------------------------------------------------------------- /config/standalone.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/config/standalone.yaml -------------------------------------------------------------------------------- /config/standalone2.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/config/standalone2.yaml -------------------------------------------------------------------------------- /config/var.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/config/var.go -------------------------------------------------------------------------------- /deploy/grafana_en.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/deploy/grafana_en.json -------------------------------------------------------------------------------- /deploy/grafana_zh.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/deploy/grafana_zh.json -------------------------------------------------------------------------------- /docker/demo/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docker/demo/Dockerfile -------------------------------------------------------------------------------- /docker/demo/gunyu.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docker/demo/gunyu.yaml -------------------------------------------------------------------------------- /docker/demo/redis1.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docker/demo/redis1.conf -------------------------------------------------------------------------------- /docker/demo/redis2.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docker/demo/redis2.conf -------------------------------------------------------------------------------- /docker/demo/start.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docker/demo/start.sh -------------------------------------------------------------------------------- /docs/API_en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docs/API_en.md -------------------------------------------------------------------------------- /docs/API_zh.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docs/API_zh.md -------------------------------------------------------------------------------- /docs/attentions_en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docs/attentions_en.md -------------------------------------------------------------------------------- /docs/attentions_zh.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docs/attentions_zh.md -------------------------------------------------------------------------------- /docs/configuration_en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docs/configuration_en.md -------------------------------------------------------------------------------- /docs/configuration_zh.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docs/configuration_zh.md -------------------------------------------------------------------------------- /docs/deployment_en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docs/deployment_en.md -------------------------------------------------------------------------------- /docs/deployment_zh.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docs/deployment_zh.md -------------------------------------------------------------------------------- /docs/imgs/arch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docs/imgs/arch.png -------------------------------------------------------------------------------- /docs/imgs/arch_en.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docs/imgs/arch_en.png -------------------------------------------------------------------------------- /docs/imgs/sync.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docs/imgs/sync.png -------------------------------------------------------------------------------- /docs/imgs/sync_en.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docs/imgs/sync_en.png -------------------------------------------------------------------------------- /docs/rdb_en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docs/rdb_en.md -------------------------------------------------------------------------------- /docs/rdb_zh.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docs/rdb_zh.md -------------------------------------------------------------------------------- /docs/sync_configuration_en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docs/sync_configuration_en.md -------------------------------------------------------------------------------- /docs/sync_configuration_zh.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docs/sync_configuration_zh.md -------------------------------------------------------------------------------- /docs/tech_en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docs/tech_en.md -------------------------------------------------------------------------------- /docs/tech_zh.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docs/tech_zh.md -------------------------------------------------------------------------------- /docs/test_en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docs/test_en.md -------------------------------------------------------------------------------- /docs/test_zh.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/docs/test_zh.md -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/go.sum -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/main.go -------------------------------------------------------------------------------- /pkg/api/api.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/api/api.proto -------------------------------------------------------------------------------- /pkg/api/gen.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/api/gen.sh -------------------------------------------------------------------------------- /pkg/api/golang/api.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/api/golang/api.pb.go -------------------------------------------------------------------------------- /pkg/api/google/api/annotations.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/api/google/api/annotations.proto -------------------------------------------------------------------------------- /pkg/api/google/api/http.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/api/google/api/http.proto -------------------------------------------------------------------------------- /pkg/api/google/api/httpbody.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/api/google/api/httpbody.proto -------------------------------------------------------------------------------- /pkg/api/server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/api/server.go -------------------------------------------------------------------------------- /pkg/cluster/cluster.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/cluster/cluster.go -------------------------------------------------------------------------------- /pkg/cluster/cluster_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/cluster/cluster_test.go -------------------------------------------------------------------------------- /pkg/cluster/etcd_cluster.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/cluster/etcd_cluster.go -------------------------------------------------------------------------------- /pkg/cluster/etcd_election.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/cluster/etcd_election.go -------------------------------------------------------------------------------- /pkg/cluster/redis_cluster.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/cluster/redis_cluster.go -------------------------------------------------------------------------------- /pkg/cluster/redis_cluster_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/cluster/redis_cluster_test.go -------------------------------------------------------------------------------- /pkg/cluster/redis_election.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/cluster/redis_election.go -------------------------------------------------------------------------------- /pkg/common/error.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/common/error.go -------------------------------------------------------------------------------- /pkg/digest/crc16.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/digest/crc16.go -------------------------------------------------------------------------------- /pkg/digest/crc64.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/digest/crc64.go -------------------------------------------------------------------------------- /pkg/errors/errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/errors/errors.go -------------------------------------------------------------------------------- /pkg/filter/commands.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/filter/commands.go -------------------------------------------------------------------------------- /pkg/filter/filter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/filter/filter.go -------------------------------------------------------------------------------- /pkg/filter/filter_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/filter/filter_test.go -------------------------------------------------------------------------------- /pkg/filter/range.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/filter/range.go -------------------------------------------------------------------------------- /pkg/filter/trie.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/filter/trie.go -------------------------------------------------------------------------------- /pkg/filter/trie_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/filter/trie_test.go -------------------------------------------------------------------------------- /pkg/io/fs/dir.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/io/fs/dir.go -------------------------------------------------------------------------------- /pkg/io/net/util.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/io/net/util.go -------------------------------------------------------------------------------- /pkg/io/net/util_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/io/net/util_test.go -------------------------------------------------------------------------------- /pkg/io/pipe/assert.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/io/pipe/assert.go -------------------------------------------------------------------------------- /pkg/io/pipe/buff.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/io/pipe/buff.go -------------------------------------------------------------------------------- /pkg/io/pipe/file.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/io/pipe/file.go -------------------------------------------------------------------------------- /pkg/io/pipe/pipe.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/io/pipe/pipe.go -------------------------------------------------------------------------------- /pkg/io/pipe/pipe_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/io/pipe/pipe_test.go -------------------------------------------------------------------------------- /pkg/io/pipe/pipeio.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/io/pipe/pipeio.go -------------------------------------------------------------------------------- /pkg/log/log.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/log/log.go -------------------------------------------------------------------------------- /pkg/log/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/log/logger.go -------------------------------------------------------------------------------- /pkg/metric/counter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/metric/counter.go -------------------------------------------------------------------------------- /pkg/metric/guage.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/metric/guage.go -------------------------------------------------------------------------------- /pkg/metric/histogram.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/metric/histogram.go -------------------------------------------------------------------------------- /pkg/metric/opts.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/metric/opts.go -------------------------------------------------------------------------------- /pkg/metric/pusher.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/metric/pusher.go -------------------------------------------------------------------------------- /pkg/metric/timer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/metric/timer.go -------------------------------------------------------------------------------- /pkg/rdb/const.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/rdb/const.go -------------------------------------------------------------------------------- /pkg/rdb/loader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/rdb/loader.go -------------------------------------------------------------------------------- /pkg/rdb/loader_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/rdb/loader_test.go -------------------------------------------------------------------------------- /pkg/rdb/rdb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/rdb/rdb.go -------------------------------------------------------------------------------- /pkg/rdb/rdb_object.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/rdb/rdb_object.go -------------------------------------------------------------------------------- /pkg/rdb/reader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/rdb/reader.go -------------------------------------------------------------------------------- /pkg/rdbrestore/restore.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/rdbrestore/restore.go -------------------------------------------------------------------------------- /pkg/redis/checkpoint/checkpoint.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/checkpoint/checkpoint.go -------------------------------------------------------------------------------- /pkg/redis/checkpoint/checkpoint_info.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/checkpoint/checkpoint_info.go -------------------------------------------------------------------------------- /pkg/redis/checkpoint/checkpoint_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/checkpoint/checkpoint_test.go -------------------------------------------------------------------------------- /pkg/redis/client/cluster.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/cluster.go -------------------------------------------------------------------------------- /pkg/redis/client/cluster/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/cluster/LICENSE -------------------------------------------------------------------------------- /pkg/redis/client/cluster/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/cluster/README.md -------------------------------------------------------------------------------- /pkg/redis/client/cluster/batch.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/cluster/batch.go -------------------------------------------------------------------------------- /pkg/redis/client/cluster/batch_pipe.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/cluster/batch_pipe.go -------------------------------------------------------------------------------- /pkg/redis/client/cluster/batcher_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/cluster/batcher_test.go -------------------------------------------------------------------------------- /pkg/redis/client/cluster/cluster.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/cluster/cluster.go -------------------------------------------------------------------------------- /pkg/redis/client/cluster/cluster_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/cluster/cluster_test.go -------------------------------------------------------------------------------- /pkg/redis/client/cluster/conn.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/cluster/conn.go -------------------------------------------------------------------------------- /pkg/redis/client/cluster/conn_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/cluster/conn_test.go -------------------------------------------------------------------------------- /pkg/redis/client/cluster/multi.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/cluster/multi.go -------------------------------------------------------------------------------- /pkg/redis/client/cluster/node.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/cluster/node.go -------------------------------------------------------------------------------- /pkg/redis/client/cluster/node_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/cluster/node_test.go -------------------------------------------------------------------------------- /pkg/redis/client/cluster/txn_batcher.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/cluster/txn_batcher.go -------------------------------------------------------------------------------- /pkg/redis/client/common/batcher.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/common/batcher.go -------------------------------------------------------------------------------- /pkg/redis/client/common/err.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/common/err.go -------------------------------------------------------------------------------- /pkg/redis/client/common/resp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/common/resp.go -------------------------------------------------------------------------------- /pkg/redis/client/common/type.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/common/type.go -------------------------------------------------------------------------------- /pkg/redis/client/conn/redis_conn.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/conn/redis_conn.go -------------------------------------------------------------------------------- /pkg/redis/client/conn/redis_conn_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/conn/redis_conn_test.go -------------------------------------------------------------------------------- /pkg/redis/client/decoder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/decoder.go -------------------------------------------------------------------------------- /pkg/redis/client/encoder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/encoder.go -------------------------------------------------------------------------------- /pkg/redis/client/handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/handler.go -------------------------------------------------------------------------------- /pkg/redis/client/proto/README.md: -------------------------------------------------------------------------------- 1 | # proto 2 | 3 | Copied from go-redis@v9.1.0. 4 | 5 | -------------------------------------------------------------------------------- /pkg/redis/client/proto/reader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/proto/reader.go -------------------------------------------------------------------------------- /pkg/redis/client/proto/scan.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/proto/scan.go -------------------------------------------------------------------------------- /pkg/redis/client/proto/writer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/proto/writer.go -------------------------------------------------------------------------------- /pkg/redis/client/redis.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/redis.go -------------------------------------------------------------------------------- /pkg/redis/client/resp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/resp.go -------------------------------------------------------------------------------- /pkg/redis/client/util.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/client/util.go -------------------------------------------------------------------------------- /pkg/redis/cluster_slot.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/cluster_slot.go -------------------------------------------------------------------------------- /pkg/redis/cluster_slot_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/cluster_slot_test.go -------------------------------------------------------------------------------- /pkg/redis/psync.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/psync.go -------------------------------------------------------------------------------- /pkg/redis/redis_lock.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/redis_lock.go -------------------------------------------------------------------------------- /pkg/redis/redis_lock_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/redis_lock_test.go -------------------------------------------------------------------------------- /pkg/redis/slot.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/slot.go -------------------------------------------------------------------------------- /pkg/redis/types/listpack.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/types/listpack.go -------------------------------------------------------------------------------- /pkg/redis/types/ziplist.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/types/ziplist.go -------------------------------------------------------------------------------- /pkg/redis/util.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/util.go -------------------------------------------------------------------------------- /pkg/redis/util_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/redis/util_test.go -------------------------------------------------------------------------------- /pkg/store/aof_reader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/store/aof_reader.go -------------------------------------------------------------------------------- /pkg/store/aof_reader_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/store/aof_reader_test.go -------------------------------------------------------------------------------- /pkg/store/aof_writer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/store/aof_writer.go -------------------------------------------------------------------------------- /pkg/store/ds.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/store/ds.go -------------------------------------------------------------------------------- /pkg/store/ds_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/store/ds_test.go -------------------------------------------------------------------------------- /pkg/store/rdb_reader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/store/rdb_reader.go -------------------------------------------------------------------------------- /pkg/store/rdb_reader_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/store/rdb_reader_test.go -------------------------------------------------------------------------------- /pkg/store/rdb_writer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/store/rdb_writer.go -------------------------------------------------------------------------------- /pkg/store/reader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/store/reader.go -------------------------------------------------------------------------------- /pkg/store/store.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/store/store.go -------------------------------------------------------------------------------- /pkg/store/store_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/store/store_test.go -------------------------------------------------------------------------------- /pkg/store/util.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/store/util.go -------------------------------------------------------------------------------- /pkg/sync/close_wait.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/sync/close_wait.go -------------------------------------------------------------------------------- /pkg/sync/con_group.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/sync/con_group.go -------------------------------------------------------------------------------- /pkg/sync/routine.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/sync/routine.go -------------------------------------------------------------------------------- /pkg/sync/sema.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/sync/sema.go -------------------------------------------------------------------------------- /pkg/util/conditional.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/util/conditional.go -------------------------------------------------------------------------------- /pkg/util/convert.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/util/convert.go -------------------------------------------------------------------------------- /pkg/util/cron.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/util/cron.go -------------------------------------------------------------------------------- /pkg/util/exec.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/util/exec.go -------------------------------------------------------------------------------- /pkg/util/hash.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/util/hash.go -------------------------------------------------------------------------------- /pkg/util/recover.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/util/recover.go -------------------------------------------------------------------------------- /pkg/util/retry.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/util/retry.go -------------------------------------------------------------------------------- /pkg/util/safe_rand.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/util/safe_rand.go -------------------------------------------------------------------------------- /pkg/util/slice_buffer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/util/slice_buffer.go -------------------------------------------------------------------------------- /pkg/util/stop.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/util/stop.go -------------------------------------------------------------------------------- /pkg/util/strconv.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/util/strconv.go -------------------------------------------------------------------------------- /pkg/util/trace.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/util/trace.go -------------------------------------------------------------------------------- /pkg/util/trace_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/util/trace_test.go -------------------------------------------------------------------------------- /pkg/util/unsafe.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/util/unsafe.go -------------------------------------------------------------------------------- /pkg/util/version.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/util/version.go -------------------------------------------------------------------------------- /pkg/util/version_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/util/version_test.go -------------------------------------------------------------------------------- /pkg/util/xtime.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/util/xtime.go -------------------------------------------------------------------------------- /pkg/version/version.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/pkg/version/version.go -------------------------------------------------------------------------------- /syncer/channel.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/syncer/channel.go -------------------------------------------------------------------------------- /syncer/input.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/syncer/input.go -------------------------------------------------------------------------------- /syncer/output.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/syncer/output.go -------------------------------------------------------------------------------- /syncer/replica.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/syncer/replica.go -------------------------------------------------------------------------------- /syncer/sm.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/syncer/sm.go -------------------------------------------------------------------------------- /syncer/syncer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/syncer/syncer.go -------------------------------------------------------------------------------- /syncer/syncer_replica.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/syncer/syncer_replica.go -------------------------------------------------------------------------------- /syncer/transaction.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mgtv-tech/redis-GunYu/HEAD/syncer/transaction.go --------------------------------------------------------------------------------