We use springmodules caching (Spring 2.0.7) in combination with ehcache to cache data that is often requested to load the load from the database.
eg. we cache the result of the public Profile getUserProfile(User u) {...} method public Profile getUserProfile(User u) {...} : when a user updates data in his own profile, it would be nice to invalidate the cached Profile only for this single User immediately after the update, so that the changes are reflected in the user interface.
Is there a way to achieve this without invalidating the full cache for this method?
Or is there a better option than springmodules caching for this use case?
Thanks so much for any tips.
source share