Skip to content

Add ability to detect when MemoryCacheStore reaches max size #4185

@OliverJAsh

Description

@OliverJAsh

What is the problem this feature will solve?

Currently it's possible to configure a maxSize with MemoryCacheStore, but there doesn't seem to be any way to detect when this max size has been exceeded.

new Undici.cacheStores.MemoryCacheStore({
  maxSize: 100_000_000,
})

What is the feature you are proposing to solve the problem?

Add a mechanism to detect when the max size has been exceeded.

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Awaiting Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions