Some methods on my web application are quite resource consuming and could be cached. They aren't dependent on global variables, temporal data or such, they are exclusively dependent on the parameters used on invocation.
Is there a simple way to cache those invocations? It would be cool to have them annotated with something like @Cacheable
, giving some TTL and cache name.
Side note: those methods are implemented on services declared on services.yml
.