Fix lint and format code in adapter/cache dir

This commit is contained in:
loyalsoldier
2021-06-05 11:11:37 +08:00
parent fb4c91fd76
commit 79f6cd9c31
3 changed files with 17 additions and 18 deletions

View File

@@ -34,10 +34,8 @@ import (
redis2 "github.com/beego/beego/v2/client/cache/redis"
)
var (
// DefaultKey the collection name of redis for cache adapter.
DefaultKey = "beecacheRedis"
)
// DefaultKey the collection name of redis for cache adapter.
var DefaultKey = "beecacheRedis"
// NewRedisCache create new redis cache with default collection name.
func NewRedisCache() cache.Cache {