When trying in local redis key storing correct date from db but when I run on my dev environment the redis key storing a wrong dates. (Initially picking data from db if hashkey does not exist.) eg. In both cases keys are unique. Hashmap is being used to store cache mapKey =test hashvalue stored as JSON
- Local: hashkey =X Date in db 27-05-2022 mapkeyJson contain date 27-05-2022 as JSON
- Dev Env: hashkey =Y Date in db 27-05-2022 mapkeyJson contain date 26-05-2022
Did anyone faced any similar issue with cache or any leads will be appreciated.
Thanks in advance.
Update: This issue got resolved by correcting the server timezone.