com.jn.agileway.redis.l2cache.RedisCacheContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of agileway-redis-springdata2 Show documentation
Show all versions of agileway-redis-springdata2 Show documentation
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
package com.jn.agileway.redis.l2cache;
import com.jn.agileway.redis.core.key.RedisKeyWrapper;
import com.jn.agileway.redis.core.RedisTemplate;
import com.jn.langx.annotation.NonNull;
import com.jn.langx.annotation.Nullable;
import com.jn.langx.cache.Loader;
import com.jn.langx.cache.RemoveListener;
public class RedisCacheContext {
@NonNull
private RedisTemplate redisTemplate;
@Nullable
private Loader loader;
@Nullable
private RemoveListener removeListener;
private RedisKeyWrapper keyWrapper;
public RedisKeyWrapper getKeyWrapper() {
return keyWrapper;
}
public void setKeyWrapper(RedisKeyWrapper keyWrapper) {
this.keyWrapper = keyWrapper;
}
public RedisTemplate getRedisTemplate() {
return redisTemplate;
}
public void setRedisTemplate(RedisTemplate redisTemplate) {
this.redisTemplate = redisTemplate;
}
public Loader getLoader() {
return loader;
}
public void setLoader(Loader loader) {
this.loader = loader;
}
public RemoveListener getRemoveListener() {
return removeListener;
}
public void setRemoveListener(RemoveListener removeListener) {
this.removeListener = removeListener;
}
}