0

Quick question about using System.Web.HttpContext.Current.Cache in ASP.NET. Is it concurrency safe? By this I mean that if I do something like this:

Cache.Insert("user", user, Nothing, DateTime.Now.AddSeconds(60), TimeSpan.Zero)

then the cache called 'user' is unique to each and every user of the application?

1 Answer 1

2

The ASP.NET cache is shared over the users. You should use the session to store user specific items.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.