@Service public class DownloadTokenServiceImpl extends Object implements DownloadTokenService
| Constructor and Description |
|---|
DownloadTokenServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
DownloadToken |
getInCache(String token) |
DownloadToken |
putInCache(DownloadToken tokenObject) |
void |
removeFromCache(String token) |
@CachePut(value="tokenCache",
key="#tokenObject.token")
public DownloadToken putInCache(DownloadToken tokenObject)
putInCache in interface DownloadTokenService@Cacheable(value="tokenCache") public DownloadToken getInCache(String token)
getInCache in interface DownloadTokenService@CacheEvict(value="tokenCache") public void removeFromCache(String token)
removeFromCache in interface DownloadTokenServiceCopyright © 2022. All rights reserved.