Reputation: 333
I am using Windows Azure table storage. I have a lot of look ups to the same rows and these row has data which rarely changes. I know recently the cloud team have come up with some enhancements but I've not had the chance to use any of them yet.
With what's new is there a way that I can now cache my requests to table storage and if so then how easy is this to set up?
Upvotes: 2
Views: 553
Reputation: 71030
I believe you're referring to the recently-released AppFabric Cache (caching-as-a-service). It's very easy to set up and use. Essentially:
cache.Put()
to add a key/value pair, and cache.Get(key)
to retrieve a valueWatch this intro video to see a full example. While this example shows twitter feed retrievals, you could just as easily retrieve table entities and put them into the cache.
There's also an AppFabric Cache lab in the Windows Azure Platform Training Kit. For info on pricing and SLA, look at the AppFabric Cache FAQ.
Upvotes: 3