SharedCache.RemoveAll();

Jan 3, 2008 at 1:23 PM
Provider.Cache.IndexusDistributionCache.SharedCache.RemoveAll();


I receive a message that is throw from the Librairy telling that it's not implemented.

I do not need it now but just to let you know.
Coordinator
Jan 3, 2008 at 2:38 PM
with one of the next prereleases1.0.2.XXX the client will have the abiliaty to commit one single command to the server to clear everything... as a workaround i can offer you the following way:

 
List<string> myServerKeys = COM.SharedCache.GetAllKeys(null);
foreach(string s in myServerKeys)
{ 
   COM.SharedCache.Remove(s); 
}

please notice, if you have 5000 keys available the client will make 5000 calls to delete each single item from the cache ... therefor its really nothing else then a workaround.

Coordinator
Jan 6, 2008 at 6:01 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.