Fix lint and format code in client/cache dir

This commit is contained in:
loyalsoldier
2021-06-06 20:38:02 +08:00
parent ca328208cc
commit a87f8ec82a
9 changed files with 23 additions and 28 deletions

View File

@@ -43,10 +43,8 @@ import (
"github.com/beego/beego/v2/core/berror"
)
var (
// The collection name of redis for the cache adapter.
DefaultKey = "beecacheRedis"
)
// DefaultKey defines the collection name of redis for the cache adapter.
var DefaultKey = "beecacheRedis"
// Cache is Redis cache adapter.
type Cache struct {

View File

@@ -28,7 +28,6 @@ import (
)
func TestRedisCache(t *testing.T) {
redisAddr := os.Getenv("REDIS_ADDR")
if redisAddr == "" {
redisAddr = "127.0.0.1:6379"