44 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
namespace LY.App.Common.Redis
 | 
						|
{
 | 
						|
    public class RedisKeyList
 | 
						|
    {
 | 
						|
        public static string BatchIdBysn(string sn)
 | 
						|
        {
 | 
						|
            return $"batchid_{sn}";
 | 
						|
        }
 | 
						|
        public static string LogNum(string userName)
 | 
						|
        {
 | 
						|
            return $"login_fail_{userName}";
 | 
						|
        }
 | 
						|
        public static string TokenUser(string userName)
 | 
						|
        {
 | 
						|
            return $"token_{userName}";
 | 
						|
        }
 | 
						|
        public static string DeviceInfo(string code)
 | 
						|
        {
 | 
						|
            return $"deviceInfo_{code}";
 | 
						|
        }
 | 
						|
        /// <summary>
 | 
						|
        /// 缓存首页数据
 | 
						|
        /// </summary>
 | 
						|
        /// <returns></returns>
 | 
						|
        public static string index_data()
 | 
						|
        {
 | 
						|
            return $"index_cache";
 | 
						|
        }
 | 
						|
        public static string DeviceStatus(string sn)
 | 
						|
        {
 | 
						|
            return $"device_status_{sn}";
 | 
						|
        }
 | 
						|
        /// <summary>
 | 
						|
        /// 缓存设备token
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="id"></param>
 | 
						|
        /// <returns></returns>
 | 
						|
        public static string DeviceTokenById(long id)
 | 
						|
        {
 | 
						|
            return $"device_token_{id}";
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |