티스토리 뷰

공부

[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

'공부' 카테고리의 다른 글

[Python] strip in map function  (0) 2022.06.06
[Kotlin] destructure array  (0) 2022.06.06
[Redis] redis-cli -h 127.0.0.1 -p 6379 FLUSHALL  (0) 2022.05.23
[Javascript] Async & Await  (0) 2022.05.23
[k8s] `Kubernetes` name?  (0) 2022.05.23
댓글