This is my setup:
<code>ini_set(“session.save_handler”,”redis”); ini_set(“session.save_path”,”tcp://127.0.0.1:6379″); </code>
This is my setup:
<code>ini_set(“session.save_handler”,”redis”); ini_set(“session.save_path”,”tcp://127.0.0.1:6379″); </code>
It really won’t happen, it’s already been said here: PHP writes to redis
I researched and found that it still happens, because after reading a key, redis is not locked, so another http request may change the data, and then the original value will be overwritten.