|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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");
}
}
}
|