posted @ 2013-11-27 10:43 做回自己 阅读(6016) 评论(0) 推荐(1) 编辑
摘要:
上于公司业务上需要实现分布式锁,在网上找了一些实现的案例,最终打算采用基于redis的分布式锁方案,不多废话,上代码核心类 1 using System; 2 using System.Diagnostics; 3 using System.Text; 4 using System.Threading; 5 using BookSleeve; 6 7 namespace ViewAlloc.Threading 8 { 9 public class RedisBillLockHandler 10 { 11 private const int D... 阅读全文