Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

$cacheFactory inefficient when no capacity #6193

Closed
@mvolkmann

Description

@mvolkmann

When no capacity is specified for a cache created with the $cacheFactory service, it still maintains a linked list of all entries and checks each time an entry is added to see if the capacity has been exceeded. It would be easy to make this more efficient by skipping maintaining the linked list when it is not an LRU cache.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions