Fix lint and format code in client/cache dir
This commit is contained in:
6
client/cache/redis/redis.go
vendored
6
client/cache/redis/redis.go
vendored
@@ -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 {
|
||||
|
||||
1
client/cache/redis/redis_test.go
vendored
1
client/cache/redis/redis_test.go
vendored
@@ -28,7 +28,6 @@ import (
|
||||
)
|
||||
|
||||
func TestRedisCache(t *testing.T) {
|
||||
|
||||
redisAddr := os.Getenv("REDIS_ADDR")
|
||||
if redisAddr == "" {
|
||||
redisAddr = "127.0.0.1:6379"
|
||||
|
||||
Reference in New Issue
Block a user