public class JetCacheUtils extends Object
Description: JetCache 单例工具类
| 限定符和类型 | 方法和说明 |
|---|---|
static <K,V> com.alicp.jetcache.Cache<K,V> |
create(String name,
com.alicp.jetcache.anno.CacheType cacheType) |
static <K,V> com.alicp.jetcache.Cache<K,V> |
create(String name,
com.alicp.jetcache.anno.CacheType cacheType,
Duration expire) |
static <K,V> com.alicp.jetcache.Cache<K,V> |
create(String name,
com.alicp.jetcache.anno.CacheType cacheType,
Duration expire,
Boolean cacheNullValue) |
static <K,V> com.alicp.jetcache.Cache<K,V> |
create(String name,
com.alicp.jetcache.anno.CacheType cacheType,
Duration expire,
Boolean cacheNullValue,
Boolean syncLocal) |
static <K,V> com.alicp.jetcache.Cache<K,V> |
create(String name,
Duration expire) |
static <K,V> com.alicp.jetcache.Cache<K,V> |
create(String name,
Duration expire,
Boolean cacheNullValue) |
static <K,V> com.alicp.jetcache.Cache<K,V> |
create(String name,
Duration expire,
Boolean cacheNullValue,
Boolean syncLocal) |
static JetCacheUtils |
getInstance() |
static void |
setJetCacheCreateCacheFactory(JetCacheCreateCacheFactory jetCacheCreateCacheFactory) |
public static JetCacheUtils getInstance()
public static void setJetCacheCreateCacheFactory(JetCacheCreateCacheFactory jetCacheCreateCacheFactory)
public static <K,V> com.alicp.jetcache.Cache<K,V> create(String name, Duration expire, Boolean cacheNullValue)
public static <K,V> com.alicp.jetcache.Cache<K,V> create(String name, Duration expire, Boolean cacheNullValue, Boolean syncLocal)
public static <K,V> com.alicp.jetcache.Cache<K,V> create(String name, com.alicp.jetcache.anno.CacheType cacheType)
public static <K,V> com.alicp.jetcache.Cache<K,V> create(String name, com.alicp.jetcache.anno.CacheType cacheType, Duration expire)
public static <K,V> com.alicp.jetcache.Cache<K,V> create(String name, com.alicp.jetcache.anno.CacheType cacheType, Duration expire, Boolean cacheNullValue)
Copyright © 2023 Dromara. All rights reserved.