-
Notifications
You must be signed in to change notification settings - Fork 1
3. Configuration
Vladyslav Lobyntsev edited this page Mar 5, 2024
·
10 revisions
The caching policy is defined per entity. When using cache for a particular entity, its policy is retrieved using entity type as a key. If it is needed to have multiple caching policies, named caching policies should be used. To define a new caching policy
- Create CacheBuilder
new CacheBuilder();
or invoke AddFluentCaching
AddFluentCaching(cacheBuilder => {/* your configuration here */});
- Call For
AddFluentCaching(cacheBuilder => cachebuilder.For<User>(u => {/* your configuration here */}));