All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ideaaedi.extspringcache.redis.ExtRedisCacheInitParser Maven / Gradle / Ivy

There is a newer version: 3.0.2.GAMMA
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy