com.ideaaedi.extspringcache.redis.ExtRedisCacheInitParser Maven / Gradle / Ivy
package com.ideaaedi.extspringcache.redis;
import com.ideaaedi.extspringcache.annotation.ExtCacheableOop;
import com.ideaaedi.extspringcache.parser.AbstractExtCacheInitParser;
import com.ideaaedi.extspringcache.parser.ExtCacheChecker;
import com.ideaaedi.extspringcache.support.SafeContainer;
import lombok.extern.slf4j.Slf4j;
import javax.annotation.Resource;
/**
* ext-redis-cache初始化解析器
*
* @author JustryDeng
* @since 2020/11/4 18:44:39
*/
@Slf4j
public class ExtRedisCacheInitParser extends AbstractExtCacheInitParser {
public static final String BEAN_NAME = "extRedisCacheInitParser";
@Resource(name = ExtCacheChecker.BEAN_NAME)
private ExtCacheChecker extCacheChecker;
@Override
public void redisParserLogic(ExtCacheableOop extCacheableOop) {
extCacheChecker.checkRedisAnnotationInfo(extCacheableOop);
SafeContainer.Data4Redis.initRedisData();
}
}