Search by

micro / plugin-redis

Stanislau.Komar

Micro Framework: Redis component

Package info

github.com/Micro-PHP/plugin-redis

Type:micro-plugin

pkg:composer/micro/plugin-redis

Statistics

Installs: 998

Dependents: 1

Suggesters: 0

Stars: 3

Open Issues: 0

v2.0.0-alpha1 2024-07-06 20:36 UTC

This package is auto-updated.

Last update: 2026-10-12 15:53:15 UTC


README

Documentation is available here. If not, we will be grateful if you can become its author :)

Redis authentication

Configure credentials per client (replace DEFAULT with the uppercase client name):

REDIS_DEFAULT_AUTH_USERNAME=default
REDIS_DEFAULT_AUTH_PASSWORD=your-redis-password

The username defaults to Redis's default user. Redis has no built-in default password: use the password configured on the server with requirepass or ACLs. When only a password is configured, the plugin uses password-only AUTH, which also supports Redis versions before 6. Set a username to authenticate as a named ACL user on Redis 6 or later.

Leave the password unset for Redis without authentication. An explicitly configured empty password is sent as an empty password. Authentication runs after connecting over TCP or a Unix socket, including persistent connections. Invalid credentials cause client creation to fail.