Using a Cache5:29 with James Churchill
Now that we've built our cache, let's see how to use it.
Our cache implementation is completely unaware of our database context. This works fine for our example, as we're integrating with the cache in our repository. But what if we wanted our cache to integrate with our database context?
This type of caching is called second level caching. For a walkthrough of how to implement a second level cache in EF, see this excellent article:
You need to sign up for Treehouse in order to download course files.Sign up