Answer the question
In order to leave comments, you need to log in
Symfony and Redis why is data lost?
Good afternoon.
There is an api on symphony. Some query results are cached in redis.
Why is some data lost? For example, before saving, the User object had data in the email field, and after getting it from the cache, is it already empty there?
The cache is not rotten, I immediately request it after saving. The lifetime is 300 seconds, and I request it after 2 seconds. And it's local. So there is not much data usage at this point.
Answer the question
In order to leave comments, you need to log in
Most likely something with serialization, debug the string that goes into the radish, and check if there is an email there. Is it possible that the email is affixed after sending the data to the radish? Radish itself should not cut out piecewise data from the cache.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question