hyperswitch
hyperswitch copied to clipboard
fix: remove old data while deserialization error from cache
Type of Change
- [x] Bugfix
Description
In case of a contract change the old data in redis would cause deserialization error, So remove the old data from redis and insert the new value.
Motivation and Context
This fixes deserialation error on old data in redis.
How did you test it?
Manual
Checklist
- [x] I formatted the code
cargo +nightly fmt --all
- [x] I addressed lints thrown by
cargo clippy
- [x] I reviewed submitted code