Redis as cache #693
Replies: 2 comments
|
I see the way the current Cache is implemented it can't be used other than with files. |
|
Hi @noone-silent, cache in this library is mostly compiled PHP code, see https://github.com/CuyZ/Valinor/blob/master/tests/Integration/Normalizer/NormalizerCompiledCodeTest.php for instance. Using Redis does not make sense, as we actually need to import and execute PHP cache files. We could never beat such performance boosts as this is just plain PHP execution, with all that comes with it such as opcache. I think this cache should not necessarily be shared across docker nodes, they can each have their own cache folders and this will work fine. If performance is a requirement, check out cache warming feature, which could for instance be called when building your production images. I'll close this as answered, but feel free to ask more questions if needed! |
Uh oh!
There was an error while loading. Please reload this page.
Hi folks,
would it make sense to use redis as a cache? As many we use docker on many different nodes and a file cache is not usable or very complicated to maintain a copy on every node. There is no shared hard disk, because we use S3 for all our files.
All reactions