4

我正在尝试使用PCFredis 凭据配置 redis。在进行操作时,RedisServer 异常不断出现。

谁能解释一下PCFredis 将如何工作?

代码

private static Lazy<ConnectionMultiplexer> lazyConnection = new Lazy<ConnectionMultiplexer>(() =>
{
    return ConnectionMultiplexer.Connect("ip:port,password=taswar-foobared,abortConect = false, ssl= true or false");
});

public static ConnectionMultiplexer Connection
{
    get
    {
        return lazyConnection.Value;
    }
}

PCF显示主机的环境变量,如 10.10.10.10、端口和密码

4

0 回答 0