|
@@ -21,7 +21,7 @@ namespace CallCenter.Caching
|
|
|
|
|
|
d.UseRedis(config =>
|
|
|
{
|
|
|
- config.DBConfig.Endpoints.Add(new ServerEndPoint(options.ConnectionString, options.Port));
|
|
|
+ config.DBConfig.Endpoints.Add(new ServerEndPoint(options.Host, options.Port));
|
|
|
config.DBConfig.Database = options.Database;
|
|
|
config.DBConfig.Password = options.Password;
|
|
|
config.SerializerName = "xjson";
|
|
@@ -41,7 +41,7 @@ namespace CallCenter.Caching
|
|
|
// use redis bus
|
|
|
.WithRedisBus(busConf =>
|
|
|
{
|
|
|
- busConf.Endpoints.Add(new ServerEndPoint(options.ConnectionString, options.Port));
|
|
|
+ busConf.Endpoints.Add(new ServerEndPoint(options.Host, options.Port));
|
|
|
|
|
|
// do not forget to set the SerializerName for the bus here !!
|
|
|
busConf.SerializerName = "xjson";
|
|
@@ -57,7 +57,7 @@ namespace CallCenter.Caching
|
|
|
|
|
|
public class CacheOptions
|
|
|
{
|
|
|
- public string ConnectionString { get; set; }
|
|
|
+ public string Host { get; set; }
|
|
|
|
|
|
public int Port { get; set; } = 6379;
|
|
|
|