Answer the question
In order to leave comments, you need to log in
How to cache user data in ASP.NET MVC?
The session of the user interests. That is, the cache must be available to a specific user session. It is also important that the cache has a lifetime after which the data would be updated.
How to make a similar cache at the application level (for all user sessions), I know it is necessary for the session:
HttpRuntime.Cache.Insert(key, obj, null, DateTime.Now.AddMinutes(minutes), TimeSpan.Zero);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question