공부
[spring] @Cachable
승가비
2022. 6. 6. 02:45
728x90
@Override
@Cacheable(key="{#bar.name, #bar.id}")
public int foo(Bar bar) {
....
}
https://stackoverflow.com/questions/13381731/caching-with-multiple-keys
@Caching With Multiple Keys
I have a service that takes in a DTO and returns some result: @Override public int foo(Bar bar) { .... } Bar is as follows (simplified): public class Bar { public int id; public String
stackoverflow.com
728x90