Redis-py provides the execute_command
method to directly invoke Redis operations. This functionality can be used to access any modules that may not have a supported interface in the redis-py client. For example, you can use the execute_command
to list all of the modules loaded into a Redis server:
r.execute_command('MODULE', 'LIST')