Skip to content

Tag a Symfony cache pool directly as the memory cache adapter, remove MemoryAdapter #89

Closed

Description

@njoubert-cleverage

Description

cleverage/cache-process-bundle#67 (PR cleverage/cache-process-bundle#68, next 2.x minor) lets an application tag a Symfony cache pool service with cleverage.cache.adapter directly: the bundle wraps it in its Adapter, no adapter class is needed anymore.

The demo still declares the memory adapter through a custom class, App\Adapter\MemoryAdapter (an Adapter around an ArrayAdapter), used by the demo.cache.* and demo.transformers_edge.cached processes.

Proposed fix

  • Replace the app.cleverage_cache_process.adapter.memory service by a cache pool declared with parent: cache.adapter.array, tagged cache.pool and cleverage.cache.adapter (code memory).
  • Remove src/Adapter/MemoryAdapter.php, update .claude/CLAUDE.md which points to it.
  • Once the cache bundle is released, require its new minor and update composer.lock: with 2.2, a pool tagged directly fails (it does not implement the bundle's AdapterInterface).

Requirements

  • Documentation updates
    • Reference
    • Changelog
  • Unit tests

Breaking changes

None.

Activity

  1. added a commit that references this issue on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions