From 0812e5ac2161639302e47b4e49bccc2e0dd26293 Mon Sep 17 00:00:00 2001 From: finley Date: Thu, 16 May 2024 09:23:13 +0800 Subject: [PATCH] update redis/v8 guide --- README.md | 6 ++++-- README_CN.md | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 68b9355..56be11e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # DelayQueue ![license](https://img.shields.io/github/license/HDT3213/delayqueue) -[![Build Status](https://travis-ci.com/HDT3213/delayqueue.svg?branch=master)](https://app.travis-ci.com/github/HDT3213/delayqueue) +![Build Status](https://github.com/hdt3213/delayqueue/actions/workflows/coverall.yml/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/HDT3213/delayqueue/badge.svg?branch=master)](https://coveralls.io/github/HDT3213/delayqueue?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/HDT3213/delayqueue)](https://goreportcard.com/report/github.com/HDT3213/delayqueue) [![Go Reference](https://pkg.go.dev/badge/github.com/hdt3213/delayqueue.svg)](https://pkg.go.dev/github.com/hdt3213/delayqueue) @@ -69,7 +69,9 @@ func main() { } ``` -> if you are using github.com/go-redis/redis/v8 please use `go get github.com/hdt3213/delayqueue@v8` +> if you are using github.com/go-redis/redis/v8 please use `go get github.com/hdt3213/delayqueue@redisv8` + +> Please note that redis/v8 is not compatible with redis cluster 7.x. [detail](https://github.com/redis/go-redis/issues/2085) > If you are using redis client other than go-redis, you could wrap your redis client into [RedisCli](https://pkg.go.dev/github.com/hdt3213/delayqueue#RedisCli) interface diff --git a/README_CN.md b/README_CN.md index a133df0..f07e51b 100644 --- a/README_CN.md +++ b/README_CN.md @@ -1,6 +1,6 @@ ![license](https://img.shields.io/github/license/HDT3213/delayqueue) -[![Build Status](https://travis-ci.com/HDT3213/delayqueue.svg?branch=master)](https://app.travis-ci.com/github/HDT3213/delayqueue) +![Build Status](https://github.com/hdt3213/delayqueue/actions/workflows/coverall.yml/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/HDT3213/delayqueue/badge.svg?branch=master)](https://coveralls.io/github/HDT3213/delayqueue?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/HDT3213/delayqueue)](https://goreportcard.com/report/github.com/HDT3213/delayqueue) [![Go Reference](https://pkg.go.dev/badge/github.com/hdt3213/delayqueue.svg)](https://pkg.go.dev/github.com/hdt3213/delayqueue) @@ -66,7 +66,9 @@ func main() { } ``` -> 如果您仍在使用 redis/v8 请使用 v8 分支: `go get github.com/hdt3213/delayqueue@v8` +> 如果您仍在使用 redis/v8 请使用 redisv8 分支: `go get github.com/hdt3213/delayqueue@redisv8` + +> 请注意 redis/v8 无法兼容 redis cluster 7.x; [详情](https://github.com/redis/go-redis/issues/2085) > 如果您在使用其他的 redis 客户端, 可以将其包装到 [RedisCli](https://pkg.go.dev/github.com/hdt3213/delayqueue#RedisCli) 接口中