I was wondering how to include Path variables in the Micronaut caching annotation.
Example:
@Get("/test/{name}")
public String getName(@PathVariable String name){
return "Hello " + name;
}
Now imagine this would be some computationally expensive operation for a user. Obviously, I have to include the user name in the cache key to be able to retrieve or invalidate it. Sadly I havent found any docs on this, so maybe someone here has a clue.