任何人都可以解释为什么你不能将空对象插入ASP.NET缓存?
string exampleItem = null;
HttpRuntime.Cache.Insert("EXAMPLE_KEY",
exampleItem,
Nothing,
DateTime.Now.AddHours(1),
System.Web.Caching.Cache.NoSlidingExpiration);
Run Code Online (Sandbox Code Playgroud)
异常错误消息指出"value"对象不能为null.在我的应用程序中,有充分的理由说明为什么我们想要在缓存中存储空值.