
shz.cache.redis.RedisCache Maven / Gradle / Ivy
package shz.cache.redis;
import shz.Validator;
import shz.cache.*;
import shz.PRException;
import java.lang.reflect.Method;
import java.lang.reflect.Parameter;
import java.util.concurrent.CountDownLatch;
import java.util.function.Function;
public abstract class RedisCache extends CacheManager {
@Override
protected boolean isSelect(CacheOperate operate) {
switch ((Jco) operate) {
case DEL:
case HDEL:
return false;
case GET:
case HGET:
case LRANGE:
case SMEMBERS:
return true;
default:
throw new UnsupportedOperationException();
}
}
@Override
protected final String getNullKey(CacheParam param) {
return param.key() + ":" + ((RedisCacheParam) param).hashKey;
}
public final Object execute(Method method, Object[] args, Function
© 2015 - 2025 Weber Informatics LLC | Privacy Policy