修改redis
parent
94ed43e1dc
commit
bb05da2b14
|
|
@ -16,7 +16,7 @@ namespace Infrastructure.Cache
|
||||||
{
|
{
|
||||||
_conn = ConnectionMultiplexer.Connect(options.Value.RedisConf.Conn);
|
_conn = ConnectionMultiplexer.Connect(options.Value.RedisConf.Conn);
|
||||||
iDatabase = _conn.GetDatabase(options.Value.RedisConf.Database);
|
iDatabase = _conn.GetDatabase(options.Value.RedisConf.Database);
|
||||||
server = _conn.GetServer("175.27.168.120:6050");
|
server = _conn.GetServer("123.132.248.154:9253");
|
||||||
}
|
}
|
||||||
|
|
||||||
public override T Get<T>(string key)
|
public override T Get<T>(string key)
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
"UploadPath": "",
|
"UploadPath": "",
|
||||||
//附件上传的路径,如果为空则保存在站点根目录
|
//附件上传的路径,如果为空则保存在站点根目录
|
||||||
"RedisConf": {
|
"RedisConf": {
|
||||||
"Conn": "175.27.168.120:6050,password=HopetryRedis1406",
|
"Conn": "123.132.248.154:9253,password=HopetryRedis1406",
|
||||||
//"Conn": "127.0.0.1:6379,password=123456",
|
//"Conn": "127.0.0.1:6379,password=123456",
|
||||||
"Database": 7
|
"Database": 7
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue