在要求输入邮箱的文本域,请填写真实的邮件地址。非真实邮件地址,将收不到回复信息。

2018年10月14日的内容

.net core

.net core的MemoryCache缓存存取MemoryCacheHelper

/// <summary> /// 缓存帮助类 /// </summary> public class MemoryCacheHelper { private static readonly MemoryCache Cache = new MemoryCache(new MemoryCacheOptions()); /// <summary> /// 验证缓存项是否存在 /// </summary> /// <param name="key">缓存Key</param> /// <returns></returns> public stat...

6年前 (2018-10-14) 1268℃ 0评论 0喜欢