随笔分类 - .NetHelper
.Net 帮助类
摘要:开个分类慢慢更新 参考B站 黑马程序员Redis 入门到实战 实战篇 实现秒杀下单 全局唯一ID 在一般业务中秒杀功能,存在并发问题如果两个线程同时执行插入操作导致数据库id 自增 同时为一个数 就会导致写入数据失败 全局Id生成器 点击查看代码 public static class RedisI
阅读全文
摘要:System.Runtime.Caching/MemoryCache ICacheEntry 接口中的属性:具体设置过期时间 可以参考:微软文档ICacheEntry 接口 缓存基本使用 (一) 绝对过期 AbsoluteExpirationRelativeToNow 绝对过期 在实际的使用中肯定是
阅读全文
摘要:调用: var ms = ExcelHelper.PrintInvoiceToExcel("观看时长", headline, items, (row, item) => { row.CreateCell(0).SetCellValue(item.Id.ToString()); row.CreateC
阅读全文