shgx_tz_mom/ZR.Common/Cache/RedisServer.cs

18 lines
430 B
C#
Raw Normal View History

2022-01-01 16:05:06 +08:00
using CSRedis;
using Infrastructure;
namespace ZR.Common.Cache
{
public class RedisServer
{
public static CSRedisClient Cache;
public static CSRedisClient Session;
public static void Initalize()
{
2022-02-23 18:30:17 +08:00
Cache = new CSRedisClient(AppSettings.GetConfig("RedisServer:Cache"));
Session = new CSRedisClient(AppSettings.GetConfig("RedisServer:Session"));
2022-01-01 16:05:06 +08:00
}
}
}