Package net.ideahut.springboot.cache
Class MemoryCacheGroupHandler
java.lang.Object
net.ideahut.springboot.cache.MemoryCacheGroupHandler
- All Implemented Interfaces:
net.ideahut.springboot.cache.CacheGroupHandler,org.springframework.beans.factory.InitializingBean
public class MemoryCacheGroupHandler
extends Object
implements net.ideahut.springboot.cache.CacheGroupHandler, org.springframework.beans.factory.InitializingBean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoid<T> T<T> Tnet.ideahut.springboot.cache.CacheInfoinfo()voidmultiDel(String group, Collection<String> keys) <T> List<T>multiList(Class<T> type, String group, Collection<String> keys) multiMap(Class<T> type, String group, Collection<String> keys) <T> TsetDataMapper(DataMapper dataMapper) setTaskHandler(net.ideahut.springboot.task.TaskHandler taskHandler)
-
Constructor Details
-
MemoryCacheGroupHandler
public MemoryCacheGroupHandler()
-
-
Method Details
-
setTaskHandler
-
setDataMapper
-
setGroups
public MemoryCacheGroupHandler setGroups(List<net.ideahut.springboot.cache.CacheGroupProperties> groups) -
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.CacheGroupHandler
-
get
- Specified by:
getin interfacenet.ideahut.springboot.cache.CacheGroupHandler
-
get
- Specified by:
getin interfacenet.ideahut.springboot.cache.CacheGroupHandler
-
multiList
- Specified by:
multiListin interfacenet.ideahut.springboot.cache.CacheGroupHandler
-
multiMap
- Specified by:
multiMapin interfacenet.ideahut.springboot.cache.CacheGroupHandler
-
put
- Specified by:
putin interfacenet.ideahut.springboot.cache.CacheGroupHandler
-
expire
- Specified by:
expirein interfacenet.ideahut.springboot.cache.CacheGroupHandler
-
delete
- Specified by:
deletein interfacenet.ideahut.springboot.cache.CacheGroupHandler
-
multiDel
- Specified by:
multiDelin interfacenet.ideahut.springboot.cache.CacheGroupHandler
-
size
- Specified by:
sizein interfacenet.ideahut.springboot.cache.CacheGroupHandler
-
clear
- Specified by:
clearin interfacenet.ideahut.springboot.cache.CacheGroupHandler
-
keys
- Specified by:
keysin interfacenet.ideahut.springboot.cache.CacheGroupHandler
-