开发者

Sharing data using HttpContext.Cache within a ASP.NET application between multiple worker processes?

Is it possible to share an object between wo开发者_开发问答rker processes using the HttpContext.Cache? If not is there an alternative method to sharing data between processes?


No, it's not possible. One way of sharing objects would be using session in database strategy. Here you have a link with some info about storing the session in the database

Another option would be using a distributed cache like memcached or AppFabric.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜