Skip to content

[cache] RedisAdapter posibility to set ACL username and password #45305

Closed
@gam6itko

Description

@gam6itko

Description

Redis extension allows to set auth with username and password (ext doc)
it's required if redis server uses ACL

RedisAdapter::createConnection should pass dsn username:password part to Redis::auth method as array (like ['username', 'password'])

Example

// somewhere outside
RedisAdapter::createConnection('redis://acl_user_name:acl_user_password@redis_host')
// somewhere inside RedisAdapter::createConnection
$redis->auth(['acl_user_name', 'acl_user_password'])

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions