php - Reasons why redis dont save env data

In a project I am currently working on, there is a bug where if too many users are active on the server at the same time, it happens, that ENV variables are not beeing saved in the session by redis. (It could eventually be, that it sets the var for a second, and then returns to state before, I'm not 100% sure of it)
So far, the only reason I have found for this is that Redis is running out of memory, which I have not been able to determine. At least it was not logged. Does anyone know of any other reasons why Redis may not be able to save ENV variables?
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: foreach() argument must be of type array|object, null given
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.