Files
sy_hx_pbl_backend/Infrastructure/Cache/RedisServer.cs

18 lines
432 B
C#
Raw Normal View History

2024-09-23 09:14:22 +08:00
using CSRedis;
using Infrastructure;
namespace DOAN.Common.Cache
{
public class RedisServer
{
public static CSRedisClient Cache;
public static CSRedisClient Session;
public static void Initalize()
{
Cache = new CSRedisClient(AppSettings.GetConfig("RedisServer:Cache"));
Session = new CSRedisClient(AppSettings.GetConfig("RedisServer:Session"));
}
}
}