4-21-1
parent
9803ea2248
commit
63701d10d7
|
@ -46,4 +46,9 @@ public class CacheConstants {
|
||||||
* 网关车辆对应网关节点ID
|
* 网关车辆对应网关节点ID
|
||||||
*/
|
*/
|
||||||
public final static String GATEWAY_VEHICLE_LINE= "gateway:vehicleLine:";
|
public final static String GATEWAY_VEHICLE_LINE= "gateway:vehicleLine:";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 缩容缓存前缀
|
||||||
|
*/
|
||||||
|
public final static String GATEWAY_REDUCED_CACHE= "reduced:cache:";
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package com.guo.gateway.cache;
|
package com.guo.gateway.cache;
|
||||||
|
|
||||||
import com.guo.common.constant.CacheConstants;
|
import com.guo.common.constant.CacheConstants;
|
||||||
|
import com.guo.common.constant.LoadConstants;
|
||||||
import com.guo.gateway.cache.abs.CacheAbs;
|
import com.guo.gateway.cache.abs.CacheAbs;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
@ -17,11 +18,9 @@ import java.util.concurrent.TimeUnit;
|
||||||
@Component
|
@Component
|
||||||
public class NodeReduced extends CacheAbs<String> {
|
public class NodeReduced extends CacheAbs<String> {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getPre() {
|
public String getPre() {
|
||||||
return "reduced:cache:";
|
return CacheConstants.GATEWAY_REDUCED_CACHE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue