feat 单元测试
This commit is contained in:
@@ -24,8 +24,10 @@ func Init(cfg *config.RedisConfig) error {
|
||||
cli: client,
|
||||
}
|
||||
cacheInstance = &CacheClient{
|
||||
cli: client,
|
||||
logger: log.GetLogger().Named("CACHE"),
|
||||
cli: client,
|
||||
}
|
||||
if logger := log.GetLogger(); logger != nil {
|
||||
cacheInstance.logger = logger.Named("CACHE")
|
||||
}
|
||||
|
||||
_, err := client.Ping(context.Background()).Result()
|
||||
|
||||
Reference in New Issue
Block a user