更新MongoDB配置并优化Redis客户端调用方式
This commit is contained in:
@@ -27,7 +27,7 @@ func (s *tenantOssTotal) GetOneByTenantId(ctx context.Context, req *dto.GetByTen
|
||||
|
||||
func (s *tenantOssTotal) UpdateUsedOssSize(ctx context.Context) (err error) {
|
||||
// 使用 Keys 取出所有key
|
||||
keys, err := redis.RedisClient.Keys(ctx, consts.OssTotalKey)
|
||||
keys, err := redis.RedisClient().Keys(ctx, consts.OssTotalKey)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user