Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Entity LRU Cache

No security coverage Under active development

Part of the Entity ecosystem · 306 projects

This module replaces the default entity memory cache with a Least Recently Used (LRU) cache. This helps prevent memory exhaustion in long-running processes, and is enabled by default for command-line interface (CLI) operations.

Features

This module swaps out the entity memory cache for a LRU cache that can prevent long running processes from using too much memory.

By default the LRU cache is only enable in CLI processes. In order to configure the LRU cache you can set the following container parameters

parameters:
  lru_memory_cache_slots: 300
  # Valid values are: cli, on, off
  lru_mode: cli

Hopefully this will become part of core in #3498154: Use LRU Cache for static entity cache

Post-Installation

@todo

Additional Requirements

None

None

Similar projects

TBD

Supporting this Module

Buy me a coffee at a Drupal event.

Community Documentation

None yet!

Ask your assistant about Entity LRU Cache

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Jan 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 4
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-alpha3 Pre-release 10–11 Jan 15, 2025
1.0.0-alpha2 Pre-release 10–11 Jan 14, 2025
1.0.0-alpha1 Pre-release 10–11 Jan 8, 2025
1.x-dev Dev 10–11 Jan 8, 2025