Package net.ideahut.springboot.cache
Class RedisCacheHandler
java.lang.Object
net.ideahut.springboot.cache.RedisCacheHandler
- All Implemented Interfaces:
net.ideahut.springboot.cache.CacheHandler,org.springframework.beans.factory.InitializingBean
public class RedisCacheHandler
extends Object
implements net.ideahut.springboot.cache.CacheHandler, org.springframework.beans.factory.InitializingBean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclear()voidvoid<T> T<T> Tnet.ideahut.springboot.cache.CacheInfoinfo()keys()voidmultiDel(Collection<String> keys) <T> List<T>multiList(Class<T> type, Collection<String> keys) multiMap(Class<T> type, Collection<String> keys) <T> TsetDataMapper(DataMapper dataMapper) setNullable(Boolean nullable) setRedisTemplate(org.springframework.data.redis.core.RedisTemplate<String, byte[]> redisTemplate) setTaskHandler(net.ideahut.springboot.task.TaskHandler taskHandler) size()
-
Constructor Details
-
RedisCacheHandler
public RedisCacheHandler()
-
-
Method Details
-
setPrefix
-
setNullable
-
setLimit
-
setRedisTemplate
public RedisCacheHandler setRedisTemplate(org.springframework.data.redis.core.RedisTemplate<String, byte[]> redisTemplate) -
setDataMapper
-
setTaskHandler
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
info
public net.ideahut.springboot.cache.CacheInfo info()- Specified by:
infoin interfacenet.ideahut.springboot.cache.CacheHandler
-
get
- Specified by:
getin interfacenet.ideahut.springboot.cache.CacheHandler
-
get
- Specified by:
getin interfacenet.ideahut.springboot.cache.CacheHandler
-
multiList
- Specified by:
multiListin interfacenet.ideahut.springboot.cache.CacheHandler
-
multiMap
- Specified by:
multiMapin interfacenet.ideahut.springboot.cache.CacheHandler
-
put
- Specified by:
putin interfacenet.ideahut.springboot.cache.CacheHandler
-
expire
- Specified by:
expirein interfacenet.ideahut.springboot.cache.CacheHandler
-
delete
- Specified by:
deletein interfacenet.ideahut.springboot.cache.CacheHandler
-
multiDel
- Specified by:
multiDelin interfacenet.ideahut.springboot.cache.CacheHandler
-
size
- Specified by:
sizein interfacenet.ideahut.springboot.cache.CacheHandler
-
clear
public void clear()- Specified by:
clearin interfacenet.ideahut.springboot.cache.CacheHandler
-
keys
- Specified by:
keysin interfacenet.ideahut.springboot.cache.CacheHandler
-