18 lines
431 B
C#
18 lines
431 B
C#
using CSRedis;
|
|
using Infrastructure;
|
|
|
|
namespace ARW.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"));
|
|
}
|
|
}
|
|
}
|