2

I can't find any info on how exactly I should update the existing cache items. Do I need to Lock the item before I update it?

What happens if users are iterating over the ListOFStuff cache item and some other task Sets it with new value during the read, what will happen?

cache.Set(“LS”, ListOFStuff);
0

1 Answer 1

2

According to MSDN MemoryCache is Thread safe, so don't have to implement Thread Safety by your own.

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.