@@ -162,6 +162,7 @@ func main() {
162
162
port := flag .Int ("p" , 12000 , "Server port." )
163
163
rps := flag .Int64 ("rps" , 0 , "Max rps. If 0 no limit is applied and the DB is stressed up to maximum." )
164
164
rpsburst := flag .Int64 ("rps-burst" , 0 , "Max rps burst. If 0 the allowed burst will be the ammount of clients." )
165
+ username := flag .String ("u" , "" , "Username for Redis Auth." )
165
166
password := flag .String ("a" , "" , "Password for Redis Auth." )
166
167
seed := flag .Int64 ("random-seed" , 12345 , "random seed to be used." )
167
168
clients := flag .Uint64 ("c" , 50 , "number of clients." )
@@ -251,6 +252,9 @@ func main() {
251
252
if * password != "" {
252
253
opts .AuthPass = * password
253
254
}
255
+ if * username != "" {
256
+ opts .AuthUser = * username
257
+ }
254
258
alwaysRESP2 := false
255
259
if * resp == "2" {
256
260
opts .Protocol = "2"
@@ -308,6 +312,7 @@ func main() {
308
312
if * cscEnabled || * useRuedis {
309
313
clientOptions := rueidis.ClientOption {
310
314
InitAddress : []string {connectionStr },
315
+ Username : * username ,
311
316
Password : * password ,
312
317
AlwaysPipelining : false ,
313
318
AlwaysRESP2 : alwaysRESP2 ,
0 commit comments