Package com.aquima.web.config
Class CacheKeyService
- java.lang.Object
-
- com.aquima.web.config.CacheKeyService
-
@Component @RefreshScope public class CacheKeyService extends Object
-
-
Constructor Summary
Constructors Constructor Description CacheKeyService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCacheKey()
protected Clock
getClock()
void
initCurrentCacheKey()
-
-
-
Method Detail
-
getClock
protected Clock getClock()
- Returns:
- a clock that returns the current instant using the best available system clock, converting to date and time using the UTC time-zone.
-
initCurrentCacheKey
@PostConstruct public void initCurrentCacheKey()
-
getCacheKey
public String getCacheKey()
-
-