Skip to content

Is it possible to set the maximum size limit of the LazyCache as is possible in IMemoryCache by MS? #188

@DanielTulpWE

Description

@DanielTulpWE

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions