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
Description
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.