LazyCache icon indicating copy to clipboard operation
LazyCache copied to clipboard

Suggestion for improvement of QuickStart documentation

Open RedFeet opened this issue 6 years ago • 1 comments

Could you add an example to the (Quick Start) documentation on "how to configure LazyCache options" in the DI container scenario? Is this the correct way?

public SomeClass(IAppCache cache) {
    _cache = cache;  
    _cache.DefaultCachePolicy.DefaultCacheDurationSeconds = 60 * 60; 
}  

RedFeet avatar Jul 15 '19 08:07 RedFeet

What you hve done is correct but frankly the current DefaultCachePolicy is a bit ugly and unusual and could do with a re-write to use the new Options pattern that is common with dotnet core.

alastairtree avatar Dec 28 '19 02:12 alastairtree