Wishlist for Velocity (CPT4?)
I went to Rob‘s presentation on Velocity tonight, it’s a great presentation and a lot of information shared with audience.
I prepare a wishlist for Velocity (CPT4 or next beta release) and hope the Velocity team can take my wishlist into consideration.
- A new method: bool DataCache.ContainsRegion(string region).
- This method checks if the region exists in the named cache or not.
- See my previous post for details.
- Update the method DataCache.GetObjectsByAnyTag(List<DataCacheTag> tags, string region) so the keys of returned cache items are unique.
- Make sure the cache key is not contained in the keys, then add the item into the collection.
- See my previous post for example.
- Make sure the default region name is not arbitratry.
- DataCache.GetCacheItem Method – Gets a DataCacheItem object to retrieve all information associated with your cached object in the cluster.
- DataCache.GetCacheItem (String) -> Gets a DataCacheItem object to retrieve all information associated with your cached object in the cluster.
- DataCache.GetCacheItem (String, String) -> Gets a DataCacheItem object to retrieve all information associated with your cached object in the cluster. For objects stored in regions.
- When using the DataCache.GetCacheItem (String) method (without region specified), the return object’s property -RegionName – is kind of arbitrary.
- A new commad for administrators to create region in PowerShell.
- New-CacheRegion [-CacheName] <CacheName> [-RegionName] <RegionName>
- Example 1:
- New-CacheRegion -CacheName Products -RegionName MyRegion -> this creates a region “MyRegion” in the named cache “Products”.
- Example 2:
- New-CacheRegion -RegionName MyRegion -> this creates a region “MyRegion” in the default cache “default”
Categories: ASP.NET, C#, Distribued Cache, Velocity
Distributed Cache, Velocity
Comments (0)
Trackbacks (0)
Leave a comment
Trackback