Skip to content

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

Merged
njoubert-cleverage merged 1 commit into
mainfrom
89
Oct 21, 2026
Merged

njoubert-cleverage merged 1 commit into
mainfrom
89

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #89, after cleverage/cache-process-bundle#67 (PR cleverage/cache-process-bundle#68): a Symfony cache pool can be tagged cleverage.cache.adapter directly.

  • config/services.yaml: the memory adapter is now an array cache pool, app.cache.memory (parent: cache.adapter.array, tags cache.pool and cleverage.cache.adapter with the code memory), wrapped in an Adapter by the bundle. Same behaviour as before (ArrayAdapter, no default lifetime, values serialized).
  • src/Adapter/MemoryAdapter.php removed.
  • .claude/CLAUDE.md: points to the pool instead of the removed class.

Draft until the release: with cache-process-bundle 2.2 (the version of composer.lock), a pool tagged directly fails (it does not implement the bundle's AdapterInterface). Once the next cache minor is released, require it in this PR and update composer.lock.

Checks (vendor/cleverage/cache-process-bundle on main, 4056d87)

  • lint:container OK; .cleverage_cache_process.adapter.memory is an Adapter around app.cache.memory.
  • demo.cache.set_get, demo.cache.get_on_miss, demo.cache.set_expires_after and demo.transformers_edge.cached succeed; demo.cache.get_invalid_input, demo.cache.set_invalid_input_option and demo.cache.set_invalid_key fail as designed.

Requirements

  • Documentation updates
    • Reference
    • Changelog
  • Unit tests

Breaking changes

None.

🤖 Generated with Claude Code

…remove MemoryAdapter

The memory cache adapter is an array cache pool (parent: cache.adapter.array)
tagged cleverage.cache.adapter, wrapped in an Adapter by the cache bundle
(cleverage/cache-process-bundle#67): App\Adapter\MemoryAdapter is removed.
Requires the next cache-process-bundle minor.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@njoubert-cleverage
njoubert-cleverage marked this pull request as ready for review October 21, 2026 13:07
@njoubert-cleverage
njoubert-cleverage merged commit 3a22d27 into main Oct 21, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant