iterate over cache keys in shared cache
-
23 iulie 2012 11:29
Is it possible to iterate over the cache keys in Shared Cache?
Does the number of regions influence the performance of the shared cache? ie. can I have a 1-2000 regions without performance degradation?
Toate mesajele
-
23 iulie 2012 14:32
Hi ladeak,
If you take a look at the DataCache Members MSDN page you can see that it does have methods that enables you to iterate through your cache (shared or not):

GetObjectsByAllTags Gets an enumerable list of all cached objects in the specified region that have all the same tags in common. 
GetObjectsByAnyTag Gets an enumerable list of all cached objects in the specified region that have any of the same tags in common. 
GetObjectsByTag Gets an enumerable list of all cached objects in the specified region that have the specified tag. 
GetObjectsInRegion Gets an enumerable list of all cached objects in the specified region. There are performance considerations when using BulkGet, although it doesn't mention anything about multiple regions affecting performance.
Hope this helps!
Cheers, Carlos Sardo
- Propus ca răspuns de Carlos Sardo 23 iulie 2012 14:32
- Editat de Carlos Sardo 23 iulie 2012 14:34
- Editat de Carlos Sardo 23 iulie 2012 14:37
-
23 iulie 2012 15:50
And by intelisens you also get:
Summary:
// Gets an enumerable list of all cached objects in the specified region that
// have all the same tags in common. Applies to Windows Server AppFabric only.Are there any constraints for the number of regions?
-
24 iulie 2012 02:13Moderator
Hi,
I suggest you look at this article with Azure Cache Regions and Tagging:
http://msdn.microsoft.com/en-us/library/windowsazure/hh914155.aspx
Hope this helps.
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework
- Marcat ca răspuns de Arwind - MSFTModerator 30 iulie 2012 09:07
-
1 august 2012 13:44The article posted specifically says that it does not apply to shared cache. Is there a way to either iterate or simply get all items in a shared cache?
-
4 august 2012 12:02I have seen no opportunity for this. Try to use the Cache Perview. It is even free.