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:"; }