We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ab3600 commit 48253f5Copy full SHA for 48253f5
docs2/pages/ef-core-docs/documentations/query-cache/scenarios/ef-core-query-cache-expiration.md
@@ -14,9 +14,6 @@ var ctx = new EntitiesContext();
14
15
// Make the query expire after 2 hours of inactivity
16
17
-// (EF5 | EF6)
18
-var options = new CacheItemPolicy() { SlidingExpiration = TimeSpan.FromHours(2)};
19
-// (EF7)
20
var options = new MemoryCacheEntryOptions() { SlidingExpiration = TimeSpan.FromHours(2)};
21
22
var states = ctx.States.FromCache(options);
0 commit comments