Package cn.sliew.milky.cache
Class AbstractCacheFactory<C extends Cache>
- java.lang.Object
-
- cn.sliew.milky.cache.AbstractCacheFactory<C>
-
- All Implemented Interfaces:
CacheFactory
public abstract class AbstractCacheFactory<C extends Cache> extends Object implements CacheFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<CacheOptions,C>map
-
Constructor Summary
Constructors Constructor Description AbstractCacheFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description CgetCache(CacheOptions options)protected abstract CnewCache(CacheOptions options)
-
-
-
Field Detail
-
map
protected final Map<CacheOptions,C extends Cache> map
-
-
Method Detail
-
getCache
public C getCache(CacheOptions options)
- Specified by:
getCachein interfaceCacheFactory
-
newCache
protected abstract C newCache(CacheOptions options)
-
-