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

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

Go to download

Provides a large number of convenient redis tools: distributed locks, distributed count, distributed cache, distributed id generator, jdk collection implements, the enhanced RedisTemplate based on a specified key prefix and the agileway-codec module

There is a newer version: 5.0.4
Show newest version
package com.jn.agileway.redis.l2cache;


import com.jn.langx.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 - 2024 Weber Informatics LLC | Privacy Policy