Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
moozzyk committed Aug 21, 2017
1 parent 7ca8273 commit 66817af
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Expand Up @@ -2,7 +2,7 @@

Entity Framework does not currently support caching of query results. A sample EF Caching provider is available for Entity Framework version 5 and earlier but due to changes to the provider model this sample provider does not work with Entity Framework 6 and newer. This project is filling the gap by enabling caching of query results for Entity Framework 6.1 applications.

####This project was moved from https://efcache.codeplex.com
#### This project was moved from https://efcache.codeplex.com

You may still find some useful information there:

Expand Down Expand Up @@ -36,4 +36,10 @@ public class Configuration : DbConfiguration
}
```

Starting with version 1.1.1 you can also use the new static `EntityFrameworkCache.Initialize()` method to configure EF to use EFCache. The `Initialize` method should be invoked at app startup (before EF is used) - e.g. in the application static constructor. To initialize EFCache with the built-in [InMemoryCache](https://github.com/moozzyk/EFCache/blob/master/EFCache/InMemoryCache.cs) you can use the following code:

```C#
EntityFrameworkCache.Initialize(new InMemoryCache());
```

You can find more details in my [blogpost](http://blog.3d-logic.com/2014/03/20/second-level-cache-for-ef-6-1/)

0 comments on commit 66817af

Please sign in to comment.