allow use of psr/cache:^3.0 by jguittard · Pull Request #268 · php-cache/cache · GitHub
Skip to content

allow use of psr/cache:^3.0#268

Open
jguittard wants to merge 2 commits intophp-cache:masterfrom
jguittard:feat/psr-cache-3
Open

allow use of psr/cache:^3.0#268
jguittard wants to merge 2 commits intophp-cache:masterfrom
jguittard:feat/psr-cache-3

Conversation

@jguittard
Copy link
Copy Markdown

Description

Allow use of psr/cache:^3.0

jguittard added 2 commits May 19, 2022 23:32
Signed-off-by: Julien Guittard <julien.guittard@me.com>
Signed-off-by: Julien Guittard <julien.guittard@me.com>
@alexeevdv
Copy link
Copy Markdown

@villfa
Copy link
Copy Markdown

villfa commented Apr 18, 2023

What about adapters?

#275 solves this issue for most of them (Chain and Common still need to be updated).

@Sweetchuck
Copy link
Copy Markdown

Sweetchuck commented May 12, 2023

I had some free time, so I played with the psr/*:3.x compatibility.
Here is the result:


Originally cache/cache is a mono repo, which contains multiple projects.

git ls-files '**/composer.json'

src/Adapter/Apc/composer.json
src/Adapter/Apcu/composer.json
src/Adapter/Chain/composer.json
src/Adapter/Common/composer.json
src/Adapter/Doctrine/composer.json
src/Adapter/Filesystem/composer.json
src/Adapter/Illuminate/composer.json
src/Adapter/Memcache/composer.json
src/Adapter/Memcached/composer.json
src/Adapter/MongoDB/composer.json
src/Adapter/PHPArray/composer.json
src/Adapter/Predis/composer.json
src/Adapter/Redis/composer.json
src/Adapter/Void/composer.json
src/Bridge/Doctrine/composer.json
src/Bridge/SimpleCache/composer.json
src/Encryption/composer.json
src/Hierarchy/composer.json
src/Namespaced/composer.json
src/Prefixed/composer.json
src/SessionHandler/composer.json
src/TagInterop/composer.json
src/Taggable/composer.json
src/Util/composer.json

And some how it is sliced into several individual projects.

Maybe it is easier to maintain a mono repo, but difficult to use the derivated individual projects. For example if you need to apply a patch.

I don't think that codes from Sweetchuck-psr-cache/* repositories ever gonna gets merged into the upstream repository, but it might be a good starting point to implement the psr/*:3.x compatibility.

@rreedy
Copy link
Copy Markdown

rreedy commented Jan 8, 2024

Drupal 10 Requires psr/cache: ^3, and adapters don't seem to get me around that fact while apcu-adapter still requires 1 || 2. Could this move forward so that sites can continue to be updated?

@aurelianzaha
Copy link
Copy Markdown

@dimitri-koenig dimitri-koenig mentioned this pull request Jul 7, 2025
3 tasks
@xvilo xvilo mentioned this pull request Dec 11, 2025
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.

6 participants