You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1016 B

namespace GPSBusiness.Redis
{
public class RedisContext
{
private static RedisHelper _server;
public static RedisHelper Server
{
get
{
if (_server == null)
{
return _server = new RedisHelper();
}
return _server;
}
}
//private static RedisHelper _datasServer;
//public static RedisHelper DatasServer
//{
// get
// {
// if (_datasServer == null)
// {
// var connectionString = ConfigurationManager.ConnectionStrings["RedisConnectionString"].ConnectionString;
// var redisAnalysisDb = int.Parse(ConfigurationManager.AppSettings["RedisAnalysisDb"]);
// return _datasServer = new RedisHelper(connectionString, redisAnalysisDb);
// }
// return _datasServer;
// }
//}
}
}