You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
918 B
42 lines
918 B
package com.zc.business.constant;
|
|
|
|
/**
|
|
* Redis key 常量定义
|
|
* @author xiepufeng
|
|
*/
|
|
public class RedisKeyConstants
|
|
{
|
|
/**
|
|
* 设备
|
|
*/
|
|
public static final String DC_DEVICES = "dc:devices";
|
|
|
|
/**
|
|
* dc设备
|
|
*/
|
|
public static final String DC_DEVICE_ID = "dc:deviceId";
|
|
|
|
/**
|
|
* 路段
|
|
*/
|
|
public static final String DC_ROAD_SECTION = "dc:roadSection";
|
|
|
|
/**
|
|
* 设备实时交通统计
|
|
*/
|
|
private static final String DC_DEVICES_TRAFFIC_STATISTICS = "dc:devicesTrafficStatistics";
|
|
|
|
/**
|
|
* 获取实时交通统计key
|
|
* @param direction 方向
|
|
* @return key
|
|
*/
|
|
public static String getDcDevicesTrafficStatisticsKey(Byte direction) {
|
|
return DC_DEVICES_TRAFFIC_STATISTICS + ":" + direction;
|
|
}
|
|
|
|
/**
|
|
* 监控物联服务器
|
|
*/
|
|
public static final String MONITOR_IOT_SERVER = "monitor:iotServer:";
|
|
}
|
|
|