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 60 LazyCache issues
Sort by recently updated
recently updated
newest added

add a constructor dependency on IOptions options base on [#128](https://github.com/alastairtree/LazyCache/issues/128)

@alastairtree It has been a long time since there were any code changes in this project. Can we assume that this project is abandoned? If so: Thank you for all...

**Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Here is some example code that allows anyone to easily reproduce the issue I am...

bug

**Describe the bug** I am using the RegisterPostEvictionCallback to auto-refresh my cache when it expires. This is causing my memory usage to gradually creep up over time. I am logging...

bug

Fixes: https://github.com/alastairtree/LazyCache/issues/152 Changes: Fixed default cache duration not getting applied to instance methods Added unit tests

Hope to see you post a new version

enhancement

In [MemoryCache by Microsoft](https://learn.microsoft.com/en-us/aspnet/core/performance/caching/memory?view=aspnetcore-7.0) we can do things like ``` public class MyMemoryCache { public MemoryCache Cache { get; } = new MemoryCache( new MemoryCacheOptions { SizeLimit = 1024 });...

**Describe the bug** I have tried everything to get rid of cache including renaming item, providing a new memorycacheprovider etc.. GetorAdd still pulls my old cache no matter what I...

bug

The existing locking implementation in the `CachingService` class is not robust. It is possible for the policy of exclusive execution per key to be violated, because the lock is released...