Azure

Jul 22, 2014 at 11:28 AM
Edited Jul 22, 2014 at 11:28 AM
HI,

what is to right place for adding caching (for azure)?

Peter
Coordinator
Jul 22, 2014 at 9:20 PM
Based on the Cache Aside Pattern (http://msdn.microsoft.com/en-us/library/dn589799.aspx), that would go here: https://genericunitofworkandrepositories.codeplex.com/SourceControl/latest#main/Source/Repository.Pattern.Ef6/Repository.cs. If you don't mind posting your implementation once it's complete that would be appreciated.
Marked as answer by lelong37 on 7/22/2014 at 2:20 PM
Coordinator
Jul 22, 2014 at 9:24 PM
For a cleaner implementation (preferred), you could just extend the Repository (https://genericunitofworkandrepositories.codeplex.com/wikipage?title=Adding%20Custom%20Queries%20to%20Repository&referringTitle=Documentation) and add caching there e.g: GetMyEntityFromCache(int id).
Marked as answer by lelong37 on 7/22/2014 at 2:24 PM