java.lang.Object
com.power4j.fist.security.core.authorization.service.CacheHelper

public class CacheHelper extends Object
Since:
1.0
Author:
CJ (power4j@outlook.com)
  • Constructor Details

    • CacheHelper

      public CacheHelper()
  • Method Details

    • makeCacheKey

      public String makeCacheKey(String serviceName, org.springframework.http.HttpMethod method)
    • loadFromCache

      public <T> Optional<T> loadFromCache(@Nullable org.springframework.cache.Cache cache, String serviceName, org.springframework.http.HttpMethod method)
    • updateCache

      public <T> void updateCache(@Nullable org.springframework.cache.Cache cache, String serviceName, org.springframework.http.HttpMethod method, List<T> data)
    • removeCache

      public boolean removeCache(@Nullable org.springframework.cache.Cache cache, String serviceName, org.springframework.http.HttpMethod method)
    • removeCache

      public void removeCache(@Nullable org.springframework.cache.Cache cache, String serviceName)