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

com.jn.agileway.redis.l2cache.RedisCacheFactory Maven / Gradle / Ivy

package com.jn.agileway.redis.l2cache;

import com.jn.langx.factory.Factory;

public class RedisCacheFactory implements Factory {
    @Override
    public RedisCache get(RedisCacheContext context) {
        RedisCache redisCache = new RedisCache();
        redisCache.setLoader(context.getLoader());
        redisCache.setRedisTemplate(context.getRedisTemplate());
        redisCache.setRemoveListener(context.getRemoveListener());
        redisCache.setKeyWrapper(context.getKeyWrapper());
        return redisCache;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy