Adding to @rmoran86, There are few more things you need to take care. Something like when you get a request to modify, like
- When you update user details, first update user details in #mysql and if the update is success then update in #redis.
- If you get a request to delete user details, you delete user details from #mysql and then perform the same on #redis.
There are multiple ways you can perform, this is one way I suggest.