Class JetCacheUtils

java.lang.Object
cn.herodotus.engine.cache.jetcache.utils.JetCacheUtils

public class JetCacheUtils extends Object

Description: JetCache 单例工具类

Author:
: gengwei.zheng
Date:
: 2022/8/9 15:43
  • Method Details

    • getInstance

      public static JetCacheUtils getInstance()
    • create

      public static <K, V> com.alicp.jetcache.Cache<K,V> create(String name, Duration expire)
    • create

      public static <K, V> com.alicp.jetcache.Cache<K,V> create(String name, Duration expire, Boolean cacheNullValue)
    • create

      public static <K, V> com.alicp.jetcache.Cache<K,V> create(String name, Duration expire, Boolean cacheNullValue, Boolean syncLocal)
    • create

      public static <K, V> com.alicp.jetcache.Cache<K,V> create(String name, com.alicp.jetcache.anno.CacheType cacheType)
    • create

      public static <K, V> com.alicp.jetcache.Cache<K,V> create(String name, com.alicp.jetcache.anno.CacheType cacheType, Duration expire)
    • create

      public static <K, V> com.alicp.jetcache.Cache<K,V> create(String name, com.alicp.jetcache.anno.CacheType cacheType, Duration expire, Boolean cacheNullValue)
    • create

      public static <K, V> com.alicp.jetcache.Cache<K,V> create(String name, com.alicp.jetcache.anno.CacheType cacheType, Duration expire, Boolean cacheNullValue, Boolean syncLocal)
    • setJetCacheCreateCacheFactory

      public static void setJetCacheCreateCacheFactory(JetCacheCreateCacheFactory jetCacheCreateCacheFactory)