I am trying to configure redis using PCF
redis credentials. During operations, a RedisServer exception continues to be thrown.
Can someone explain how PCF
redis will work?
the code
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
Environment variables showing host like 10.10.10.10, port and password
source
share