티스토리 뷰

공부

[Java] Ehcache get, update (refresh key)

승가비 2022. 1. 2. 19:02
728x90
@Cacheable(value = "devices", key = "#hardwareId", unless = "#result == null")
public Device get(String hardwareId)

@CachePut(value ="devices", key= "#hardwardId", unless = "#result == null")
public Device update(String hardwareId)

https://stackoverflow.com/questions/48945484/java-ehcache-how-to-replace-members

 

Java ehCache, how to replace members

I have a simple method that I have annotated for caching. @Cacheable(value = "devices", key = "#hardwareId", unless = "#result == null") public Device get(String hardwareId) I have a mechanis...

stackoverflow.com

 

728x90

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

[Java] @Slf4j; log.info("asdf")  (0) 2022.01.04
MQTT  (0) 2022.01.02
[Java] Integer.toBinaryString(int i)  (0) 2022.01.01
[Sh] rmdir ... || true  (0) 2021.12.29
[Java] getMethodName & getClassName  (0) 2021.12.29
댓글