04 2018 档案
多线程系列1:经典卖票
摘要:1.卖票的方法 class TicketRest { int ticket = 1; int Max = 0; public TicketRest(int max) { Max = max; } /// <summary> /// 未加锁 /// </summary> /// <param name
阅读全文
.Netcore使用Session
摘要:1.使用Session(进程内) 在startup中添加方法 services.AddSession app.UseSession() services.AddDistributedMemoryCache(); 2.使用Redis存储Session(单节点) services.AddDistribu
阅读全文