- Issue created by @mxr576
- 🇭🇺Hungary mxr576 Hungary
(Original Slack thread with the problem statement: https://drupal.slack.com/archives/C079NQPQUEN/p1744729430123259)
- 🇬🇧United Kingdom catch
Since the entries in the cache only last for one request, it shouldn't really make a difference if the service is 'different' - e.g. it's not like if we swapped a persistent cache service around. So I can't think of too much that would go wrong in the issue summary except perhaps someone using autowire in their runtime code, but using the entity.memory_cache service name in a test. However even this would only cause a test failure and not a runtime issue.
In general, code that wants to use a memory cache should create its own service and inject it anyway, rather than chucking everything in the same place.
The one thing I'm wondering about though is whether we should also deprecate the new service - then we could tell people not to use it an define their own memory cache service instead. If this is controversial it'd be easy to split that to a follow-up for more discussion though.