LazyCache icon indicating copy to clipboard operation
LazyCache copied to clipboard

An easy to use thread safe in-memory caching service with a simple developer friendly API for c#

Results 59 LazyCache issues
Sort by recently updated
recently updated
newest added

[Use the Thumbs Up reaction to vote for this feature, and please avoid adding comments like "+1" as they create noise for others watching the issue.] **Is your feature request...

enhancement

**Describe the bug** Hi, I am trying to use ExpirationMode.ImmediateEviction with sliding expiration in my project and this makes the entry to update every time I access it, ignoring the...

bug

There appears to be a null value returned from the out parameter when using the trygetvalue method. The code appears to find the value in the cache if this is...

I have introduced the following changes: - now the `IAppCache.Add` method allows to cache `null `values. No exception is thrown. - changed the signature of `IAppCache.TryGetValue` from `bool TryGetValue(string key,...

Can you please explain why adding a null item to the cache via `IAppCache.Add` is [disallowed](https://github.com/alastairtree/LazyCache/blob/33d055c75b455eacf62add2ca41182b541b47981/LazyCache/CachingService.cs#L67) ? I'm asking because the underlying ASP.NET core memory cache allows to add null...

**Describe the bug** DefaultCacheDurationSeconds is being ignored in some code paths. It only appears to be used in `AppCacheExtensions` e.g. extension https://github.com/alastairtree/LazyCache/blob/e38695bf63b1d33d97032e995d7dd5609dd692b3/LazyCache/AppCacheExtensions.cs#L74 but not in the almost equivalent instance method...

bug

I have been struggling to get LazyCache to behave when setting a SizeLimit in the underlying MemoryCache. Intermittently it seemed, it would throw the following exception despite me supplying a...

Per the issue I opened just a brief while ago at [https://github.com/alastairtree/LazyCache/issues/86](https://github.com/alastairtree/LazyCache/issues/86), this pull request is a first pass at an implementation supporting cache invalidation without knowing the entirety of...

I've read numerous requests to have a better mechanism to enumerate through keys that are stored in cache. This makes it very convenient to expire an entire set of cached...

**[To support this feature request please add a thumbs up]** It would be good to extend this current project to support IDistributedCache!

enhancement