Home > ASP.NET, C#, Distribued Cache, Velocity > Wishlist for Velocity (CPT4?)

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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”
About these ads
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: