Combining Caching Application Block with Data Access Application Block

Topics: Caching Application Block
Sep 30, 2010 at 12:35 PM

 

Hi,

I m new to Enterprise Library.

I know how to develope simple application with Caching Application Block.

But I want to Combine both Caching Application Block with Data Access Application Block.

So please describe the steps  for how to Write Caching Application Block with Data Access Application Block.

 

Thanks

Sep 30, 2010 at 1:16 PM

There's no code difference when performing caching using database as the backing store.   The only difference is the caching configuraitonin the config file.  The extra step is adding a Database Backing Store or Data Cache Storage in your config and associating it to a cache manager.  Here's the link to the related topic from the documentation.  Enterprise Library also ships with a sql script which automatically creates the necessary database objects related to caching.  It's located in EntLib[Version#]Src\Blocks\Caching\Src\Database\Scripts.

 

Sarah Urmeneta
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com