ROLE
Report the replication role and state of this server.
ROLE
Complexity
O(1) on a replica; O(R) on a primary
Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.
Redis compatibility
Compatible
Behaves as Redis does.