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

This commit is contained in:
2026-03-12 08:51:13 +08:00
parent 8218487ed0
commit 795555eb2f
+5
View File
@@ -232,6 +232,11 @@ func cleanRedis(ctx context.Context, tenantId interface{}, collection string) (e
return
}
}
oneKey := fmt.Sprintf(consts.One, tenantId, collection)
_, err = redis.RedisClient.Del(ctx, oneKey)
if err != nil {
return
}
return
}