Skip to content

Add a hook to limit the number of appends #18

@uklance

Description

@uklance

Add a hook to allow the user to specify an evictionPolicy.

A simple implementation could look for a "maxElements" config param and evict the oldest elements once the max has been reached.

When elements are removed, fire a PUSH_EVICTION event as a hook.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions