Skip to content

Configure XRegExp internal cache to be a sized LRU  #350

@mattbishop

Description

@mattbishop

I am looking at using XRegExp in a long-running server, where user-supplied regex statements are compiled and used to match values.

Internally, XRegExp uses a cache mechanism to avoid recompiling already-seen patterns. This is great, but will become a memory leak over time as nothing evicts the compiled patterns over time.

Ideally one could configure XRegExp to use an LRU cache instead of the simple object cache so that the size never grows beyond a specified size.

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