Class CacheManager
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.common.cache.CacheManager
-
public class CacheManager extends Object
-
-
Constructor Summary
Constructors Constructor Description CacheManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectaroundCacheable(org.aspectj.lang.ProceedingJoinPoint point)ObjectaroundCacheEvict(org.aspectj.lang.ProceedingJoinPoint point)voidcacheable()voidcacheEvict()static voidevictCache(String name, String key)private ObjectreadCache(com.google.common.cache.Cache<Object,Object> cache, String key, org.aspectj.lang.ProceedingJoinPoint point)
-
-
-
Method Detail
-
cacheable
public void cacheable()
-
cacheEvict
public void cacheEvict()
-
aroundCacheable
public Object aroundCacheable(@Nonnull org.aspectj.lang.ProceedingJoinPoint point) throws Throwable
- Throws:
Throwable
-
aroundCacheEvict
public Object aroundCacheEvict(@Nonnull org.aspectj.lang.ProceedingJoinPoint point) throws Throwable
- Throws:
Throwable
-
evictCache
public static void evictCache(@Nullable String name, @Nullable String key) throws ExecutionException
- Throws:
ExecutionException
-
-