Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
Now that we've built our cache, let's see how to use it.
Cache Types
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:
Data Points - Second-Level Caching in the Entity Framework and AppFabric
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up