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

com.ideaaedi.extspringcache.redis_caffeine.ExtRedisCaffeineCacheInitParser Maven / Gradle / Ivy

The newest version!
package com.ideaaedi.extspringcache.redis_caffeine;


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 jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;

/**
 * ext-redis-caffeine-cache初始化解析器
 *
 * @author JustryDeng
 * @since 2020/11/4 18:44:39
 */
@Slf4j
public class ExtRedisCaffeineCacheInitParser extends AbstractExtCacheInitParser {
    
    public static final String BEAN_NAME = "extRedisCaffeineCacheInitParser";

    @Resource(name = ExtCacheChecker.BEAN_NAME)
    private ExtCacheChecker extCacheChecker;
    
    @Override
    public void redisCaffeineParserLogic(ExtCacheableOop extCacheableOop) {
        extCacheChecker.checkRedisAnnotationInfo(extCacheableOop);
        extCacheChecker.checkCaffeineAnnotationInfo(extCacheableOop);
        SafeContainer.Data4RedisCaffeine.initRedisData();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy