Default duration of Cache.Insert in ASP.NET

前端 未结 2 1668
逝去的感伤
逝去的感伤 2021-02-19 18:43

If I have the following line, when should I expect the cache to expire?

System.Web.HttpRuntime.Cache.Insert(\"someKey\", \"Test value\");
2条回答
  •  无人及你
    2021-02-19 19:03

    "Never", that is, as soon as memory is low and ASP.NET Cache thinks it has something more important to keep.

提交回复
热议问题