08 2020 档案

摘要:C# Redis分布式锁的应用 weixin_34377919 2019-02-07 02:45:03 965 收藏 2 版权 1、背景 我们在开发很多业务场景会使用到锁,例如库存控制,抽奖等。一般我们会使用内存锁的方式来保证线性的执行。但现在大多站点都会使用分布式部署,那多台服务器间的就必须使用同 阅读全文
posted @ 2020-08-30 09:05 .net&new 阅读(134) 评论(0) 推荐(0) 编辑
摘要:测试函数 static async Task RunProgram(){ var taskQueue = new ConcurrentQueue<CustomTask>(); var cts = new CancellationTokenSource(); //生成任务添加至并发队列 var tas 阅读全文
posted @ 2020-08-21 23:03 .net&new 阅读(2264) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.IO;u 阅读全文
posted @ 2020-08-12 22:35 .net&new 阅读(208) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示