开发者

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

开发者 https://www.devze.com 2023-03-09 13:39 出处:网络
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. On

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

精彩评论

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