Commit b3feb903 by xiongyuwen

no message

parent 48a8d8e0
......@@ -449,11 +449,11 @@ namespace Bailun.Discuz.Application.WeiPan
string userId = "chenzekai";
List<WeiPanFileList> inserWeiPanFileList = new List<WeiPanFileList>();
//1:获取线上的所有文档数据
//var filList=await GetFileList();
var filList=await GetFileList();
//string value = "测试数据";
//RedisHelper.Set("key", filList);
List<WeiPanFileList> filList = RedisHelper.Get<List<WeiPanFileList>>("key");
//List<WeiPanFileList> filList = RedisHelper.Get<List<WeiPanFileList>>("key");
//2:判断当前fileid是否存在于数据库中,如果不存在则添加
foreach (var file in filList)
......
......@@ -59,15 +59,15 @@ namespace Bailun.Discuz
//注入日志
services.AddSingleton<ILessLog, LessLog>();
string hostName = ConfigManagerConf.GetValue("redis:HostName");
string port = ConfigManagerConf.GetValue("redis:Port");
string password = ConfigManagerConf.GetValue("redis:Password");
string defaultdatabase = ConfigManagerConf.GetValue("redis:Defaultdatabase");
//string hostName = ConfigManagerConf.GetValue("redis:HostName");
//string port = ConfigManagerConf.GetValue("redis:Port");
//string password = ConfigManagerConf.GetValue("redis:Password");
//string defaultdatabase = ConfigManagerConf.GetValue("redis:Defaultdatabase");
var redis_connString = $"{hostName}:{port}, defaultDatabase = {defaultdatabase},password={password}, poolsize = 500, ssl = false, writeBuffer = 10240";
var rs = new CSRedis.CSRedisClient(redis_connString);
//var redis_connString = $"{hostName}:{port}, defaultDatabase = {defaultdatabase},password={password}, poolsize = 500, ssl = false, writeBuffer = 10240";
//var rs = new CSRedis.CSRedisClient(redis_connString);
RedisHelper.Initialization(rs);//初始化Redis
//RedisHelper.Initialization(rs);//初始化Redis
return services.AddAbpService<ServiceModule,BaseContext>(_appConfiguration);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment