Caching layer

Sep 22, 2011 at 4:33 PM

Hi, its wonderful to see a real implementation of the repository and unit of work pattern. I have read somewhere that the Silk project also has implemented application caching? I can't find any relevant code in the source. Is it implemented?

If not, where would you place the caching layer? In the domain service layer?


Any examples are much appreciated.



Sep 23, 2011 at 5:13 PM


As far as I know, Silk provides guidance on how to achieve client-side data caching, which can be found in the Client Data Management and Caching chapter.

For server-side caching, it would be up to you to decide where and how to implement it. Regarding that, you can "(...) see the Partial Page Output Caching section of Scott Guthrie's blog post on the MVC 3 release candidate and the Child Action Output Caching section of the MVC 3 Release Notes." to find more information on possible approaches to use caching, using the tools provided by ASP.NET MVC 3.

I hope you find this helpful.

Guido Leandro Maliandi

Oct 9, 2011 at 2:58 PM

Thanks Guido!

Be to more specific, im looking for best practices regarding webform patterns for server-side caching. A quick solution is to add it to my service layer.