package com.zc.business.constant;

/**
 *  Redis key 常量定义
 * @author xiepufeng
 */
public class RedisKeyConstants
{
    /**
     * 设备
     */
    public static final String DC_DEVICES = "dc:devices";

    /**
     * 路段
     */
    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;
    }
}