程序包 cn.myafx.cache
类 CacheFactory
java.lang.Object
cn.myafx.cache.CacheFactory
- 所有已实现的接口:
AutoCloseable
-
构造器概要
构造器构造器说明CacheFactory(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory, ICacheKey cacheKey, String prefix, IJsonMapper jsonMapper) -
方法概要
修饰符和类型方法说明voidclose()<T extends IRedisCache>
T<T extends IHashCache<TField,TValue>, TField, TValue>
T<T extends IValueCache<TValue>,TValue>
Torg.springframework.data.redis.connection.RedisConnection
-
构造器详细资料
-
CacheFactory
public CacheFactory(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory, ICacheKey cacheKey, String prefix, IJsonMapper jsonMapper) throws Exception - 抛出:
Exception
-
-
方法详细资料
-
getConnection
- 抛出:
Exception
-
getCacheKey
-
getPrefix
-
getObjectMapper
-
getCache
- 抛出:
Exception
-
getCache
public <T extends IValueCache<TValue>,TValue> T getCache(String item, Class<T> clazz, Class<TValue> valueClass) throws Exception - 抛出:
Exception
-
getCache
public <T extends IHashCache<TField,TValue>, T getCacheTField, TValue> (String item, Class<T> clazz, Class<TField> fieldClass, Class<TValue> valueClass) throws Exception - 抛出:
Exception
-
close
- 指定者:
close在接口中AutoCloseable- 抛出:
Exception
-