ASP.NET Data Cache - preserve contents after app domain restart

后端 未结 3 1956
礼貌的吻别
礼貌的吻别 2021-01-06 07:06

I am using ASP.NET\'s data caching API. For example:

HttpRuntime.Cache.Insert(my_data, my_key);

Is there any way to configure cache so its

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-06 07:41

    Recycling the appdomain dumps the cache. If you want to get around this you'd need to use a distributed cache. Here's an example.

提交回复
热议问题