I am using the @Cache annotation to cache some results.
I would like to control the cache invalidation. One thought is to give the cache a name, then being able to invalidate the cache by specifying the name. For example:
@Cache(maxAge=60000, name="myCache")
public Date getMyDate() {
...
}
Then, to invalidate:
RestCache.invalidate("myCache");