IfishSocketEnglish/src/main/java/com/ifish/util/RedisKey.java

55 lines
1.4 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.ifish.util;
/**
*
* @author Administrator
*/
public class RedisKey {
/**
* 用户缓存前缀,以id进行存储
*/
public static final String USER_ID_KEY = "userE:id_";
/**
* 设备用户关系缓存前缀以设备ID和用户ID进行存储
*/
public static final String DEVICE_USER_DEVICEID_AND_USERID = "deviceUserE:";
/**
* 设备用户关系缓存前缀列表以设备ID进行存储
*/
public static final String DEVICE_USER_LIST_DEVICEID = "deviceUserlistE:id_";
/**
* 设备详情缓存前缀以macAddress进行存储
*/
public static final String DEVICE_KEY_MACADDRESS = "deviceE:mac_";
/**
* 设备详情缓存前缀以deviceId进行存储
*/
public static final String DEVICE_KEY_DEVICEID = "deviceE:id_";
/**
* 设备统计信息表缓存前缀,以deviceId为前缀
*/
public static final String DEVICE_STATISTICS_DEVICEID = "devicestatiE:id_";
/**
* 设备统计信息表缓存前缀,以mac地址为前缀
*/
public static final String DEVICE_STATISTICS_MACADDRESS = "devicestatiE:mac_";
/**
* 设备类型缓存前缀
*/
public static final String HARD_WARE_TYPE = "hardwaretypeE:";
}