Right now if you update data via the api, it will update the cache.
BUT what if someone manually changes data via the CLI or some other program?
It would be ideal to add @EntityListener so that we can see that change and update the cache as well.
Otherwise, the cache can still potentially get out of sync
https://solocoding.dev/blog/eng_spring_entity_listener_SpringBoot_SpringDataJpa
Right now if you update data via the api, it will update the cache.
BUT what if someone manually changes data via the CLI or some other program?
It would be ideal to add @EntityListener so that we can see that change and update the cache as well.
Otherwise, the cache can still potentially get out of sync
https://solocoding.dev/blog/eng_spring_entity_listener_SpringBoot_SpringDataJpa