mongodb基础操作方法增加redis缓存策略

This commit is contained in:
2025-12-15 17:14:23 +08:00
parent 8218487ed0
commit 795555eb2f

View File

@@ -232,6 +232,11 @@ func cleanRedis(ctx context.Context, tenantId interface{}, collection string) (e
return return
} }
} }
oneKey := fmt.Sprintf(consts.One, tenantId, collection)
_, err = redis.RedisClient.Del(ctx, oneKey)
if err != nil {
return
}
return return
} }