encapsulate Redis base function

This commit is contained in:
landaiqing
2024-08-06 13:17:03 +08:00
parent d0496b34f0
commit 86b907d4d0
15 changed files with 493 additions and 23 deletions

View File

@@ -1,6 +1,7 @@
package global
import (
"github.com/redis/go-redis/v9"
"github.com/sirupsen/logrus"
"github.com/wenlng/go-captcha/v2/click"
"github.com/wenlng/go-captcha/v2/rotate"
@@ -17,4 +18,5 @@ var (
TextCaptcha click.Captcha
SlideCaptcha slide.Captcha
RotateCaptcha rotate.Captcha
REDIS *redis.Client
)