zio / zio-redis

A ZIO-based redis client
https://zio.github.io/zio-redis
Apache License 2.0
121 stars 63 forks source link

what is the configuration file? #959

Closed alek-w closed 1 month ago

alek-w commented 3 months ago

https://github.com/zio/zio-redis/blob/master/modules/redis/src/main/scala/zio/redis/api/Connection.scala#L36

it says

if the password provided via AUTH matches the password in the configuration file, the Unit value is returned and the server starts accepting commands. Otherwise, an error is returned and the client needs to try a new password.

but what is the configuration file? thx in advance

victornguen commented 3 months ago

Hi! I think the mentioned configuration file is the Redis config (redis.conf) or a separate ACL file with user credentials. You can use the auth method to authenticate with any credentials that are in the ACL.

mijicd commented 1 month ago

Answered by @victornguen .