Skip to content

Commit 48253f5

Browse files
authored
Update ef-core-query-cache-expiration.md
1 parent 9ab3600 commit 48253f5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

docs2/pages/ef-core-docs/documentations/query-cache/scenarios/ef-core-query-cache-expiration.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ var ctx = new EntitiesContext();
1414

1515
// Make the query expire after 2 hours of inactivity
1616
17-
// (EF5 | EF6)
18-
var options = new CacheItemPolicy() { SlidingExpiration = TimeSpan.FromHours(2)};
19-
// (EF7)
2017
var options = new MemoryCacheEntryOptions() { SlidingExpiration = TimeSpan.FromHours(2)};
2118

2219
var states = ctx.States.FromCache(options);

0 commit comments

Comments
 (0)