简体   繁体   English

会话状态的Azure Co-Located-Cache最大项目大小

[英]Azure Co-Located-Cache max item size for session state

I have undestood that the maximum serialized size of an item in the Co Located Azure Shared Cache (preview) is 8mb. 我并没有意识到“位于同一位置的Azure共享缓存(预览)”中某个项目的最大序列化大小是8mb。 I am currently using the Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider to store my session state in the cache. 我当前正在使用Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider将会话状态存储在缓存中。

My question is if the session (all session key/values) is serialized as one item or is it each key by it self that can not exceed 8MB? 我的问题是,会话(所有会话键/值)是否被序列化为一项,或者是每个键本身不能超过8MB?

So if i have 10 keys with 1 mb of data each is it exceding the 8MB limit? 因此,如果我有10个密钥,每个密钥具有1 mb的数据,是否超出了8 MB的限制?

I know that you arent suppose to store that large objects in session (and I don´t 99% of the time) its just to know how some edge cases will behave in my application. 我知道您不打算将大型对象存储在会话中(而且我没有99%的时间),只是为了了解某些边缘情况在我的应用程序中的行为。

In my experience, what you say is correct. 根据我的经验,您说的是正确的。 I've used the Microsoft report viewer control which puts a large amount of data into session with a guid key each time you run a new report and if I don't clean out these session keys I see this error. 我使用了Microsoft报表查看器控件,每次运行新报表时,该控件都会使用guid键将大量数据放入会话中,如果我不清除这些会话键,则会看到此错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM