LineCodeRedisHelper.cs
629 Bytes
using Hh.Mes.Common.Redis;
namespace WebMvc.Common
{
public static class LineCodeRedisHelper
{
/// <summary>
/// 线体编码
/// </summary>
public static string LineCode = string.Empty;
public static void SaveLineCode(string account, string lineCode)
{
var redis = new RedisBase();
redis.Set($"{account}_lineCode", lineCode, redis.dayTimeTwo);
}
public static string GetLineCode(string account)
{
var redis = new RedisBase();
return redis.GetT<string>($"{account}_lineCode");
}
}
}