How to config the connectstring of redis 6.0 with username and password

how to config the connectstring of redis 6.0 with username and password
i have try with “172.64.116.22:6379,password=123456,user=avatardb” but it doesn’t work

It uses URL query String format, see Redis Connection Strings examples in:

e.g:

var connString = $"redis://{Host}?ssl=true&username={Username}&password={Password.UrlEncode()}";
var redisManager = new RedisManagerPool(connString);