InvalidateCache for StorageCache Mechanism

Topics: General Topic
Dec 3, 2010 at 1:04 PM
Edited Dec 3, 2010 at 1:12 PM

Hi Andrea,

My query is in continuation with the post on Nov 16: Get All the list of (Roles, Tasks, Operations) for specific user . I used the code snippet example provided by you to retrieve all the authorizedItems for a specific user . I observed that the WCF cache service has an invalidate cache method exposed, but I would like to know whether there is a way to invalidate the storage cache whenver the authorizations are changed on SQL Storage.  

Dec 9, 2010 at 8:29 AM


yes you have to invalidate the StorageCache.

You have 4 ways:

1) From the WCF code … invoke InvalidateCache() method.

2) Restart NetSqlAzMan WCF Cache Service

3) Run the Invalidate Service Cache console client (Start – Programs - .NET SQL Authorization Manager – Cache Service)

4) Restart the “.NET SQL Authorization Manager Cache Service” service.



Andrea Ferendeles
NetSqlAzMan Project Coordinator
E-mail Web

Dec 10, 2013 at 5:05 AM

Is there a way to invalidate StorageCache?
I dont want to use WCF Cache service.

Dec 10, 2013 at 7:08 AM
Use the
Dec 12, 2013 at 12:11 PM
Thanks Andrea.
But how do i invalidate this StorageCache ?
Dec 12, 2013 at 1:50 PM
Just invoke that method on your StorageCache instance ... I cannot understand your question.
Dec 13, 2013 at 6:36 AM
Hi Andrea,

NetSqlAzMan has two ways of caching the store data.
1)WCF cache service

I want to use the second option. Now, "NetSqlAzMan.Cache.StorageCache" class does not have a method for invalidating this cache.
So, how do i invalidate the cache built using "NetSqlAzMan.Cache.StorageCache" object instance ?
Dec 13, 2013 at 6:59 AM
once again my answer is the same.
The cache can be invalidated, rebuilding it by invoking the method BuildStorageCache() of your StorageCache instance.
Dec 13, 2013 at 12:42 PM
got it