I'm currently using AppCaches.RuntimeCache.Insert to cache a few objects. Can someone confirm if this type of cache only exists for the specific user visiting the site or all users i.e. is this a cache for individuals or is it cached across the board.
Example:
User 1 visits the site (object caches), User 2 visits the site also see newly cached object from when User 1 looked at it).
Runtime Cache query
Hi.
I'm currently using AppCaches.RuntimeCache.Insert to cache a few objects. Can someone confirm if this type of cache only exists for the specific user visiting the site or all users i.e. is this a cache for individuals or is it cached across the board.
Example: User 1 visits the site (object caches), User 2 visits the site also see newly cached object from when User 1 looked at it).
Hope this makes sense
The runtime cache is shared for the ”runtime”, so anything stored in this cache will be shared for all requests.
You could store user specific info if you need but you would need a user-dependent key.
Like userInfo-1, userInfo-2 where 1 and 2 could be the user id.
The “request cache” will only live for the duration of a request like using Request.Items, this cache would be request/user specific.
Not sure if this is what you asked?
Hi Markus,
Thanks for this - answers my question perfectly.
is working on a reply...