ASP.NET - caching user privileges
<p>I'm sorry for my english.</p>

<p>In my ASP.NET MVC application I have users controlled by ASP.NET Membership and user groups which are stored in database by means of my business-logic. Also, I implemented ACL (access control list) architecture to control user access to entities in my application so i have a number of records (stored in DB table) of structure User-Object-Privilegy-Value. </p>

<p>To ensure that a user has access to certain entity (or object) i need to re-create ever time the hierarchy of all groups where the user is the participant and find all privileges for that subjects.</p>

<p>In the purpose of optimization i need to cache that information in the application cache but i also need to monitor if any user, user group or privilegy has changed to invalidate that cached records. </p>

<p>I could implement it by some ways but i'd like to know the better way.</p>

<p>Did anyone has the same expirience? What is the best solution for caching user privileges?</p>
