20 lines
525 B
C#
20 lines
525 B
C#
using CSRedis;
|
|
using Infrastructure;
|
|
using Microsoft.Extensions.Caching.Distributed;
|
|
|
|
namespace ZR.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"));
|
|
RedisHelper.Initialization(Cache);
|
|
}
|
|
}
|
|
}
|