In MemoryCache by Microsoft we can do things like
public class MyMemoryCache
{
public MemoryCache Cache { get; } = new MemoryCache(
new MemoryCacheOptions
{
SizeLimit = 1024
});
}
or
Action<MemoryCacheOptions> action = options =>
{
options.SizeLimit = 1024;
};
services.AddMemoryCache(action);
Is there a way to limit the total size of the LazyCache?
If not, this should be your next feature to implement in my opinion.
This is why it is important