diff --git a/redis/cluster.py b/redis/cluster.py index 0347893205..2ce9c54f85 100644 --- a/redis/cluster.py +++ b/redis/cluster.py @@ -295,6 +295,10 @@ class AbstractRedisCluster: "LATENCY HISTORY", "LATENCY LATEST", "LATENCY RESET", + "MODULE LIST", + "MODULE LOAD", + "MODULE UNLOAD", + "MODULE LOADEX", ], DEFAULT_NODE, ), diff --git a/redis/commands/cluster.py b/redis/commands/cluster.py index 691cab3def..14b8741443 100644 --- a/redis/commands/cluster.py +++ b/redis/commands/cluster.py @@ -32,11 +32,13 @@ AsyncFunctionCommands, AsyncGearsCommands, AsyncManagementCommands, + AsyncModuleCommands, AsyncScriptCommands, DataAccessCommands, FunctionCommands, GearsCommands, ManagementCommands, + ModuleCommands, PubSubCommands, ResponseT, ScriptCommands, @@ -873,6 +875,7 @@ class RedisClusterCommands( ScriptCommands, FunctionCommands, GearsCommands, + ModuleCommands, RedisModuleCommands, ): """ @@ -903,6 +906,7 @@ class AsyncRedisClusterCommands( AsyncScriptCommands, AsyncFunctionCommands, AsyncGearsCommands, + AsyncModuleCommands, ): """ A class for all Redis Cluster commands diff --git a/tests/test_asyncio/test_commands.py b/tests/test_asyncio/test_commands.py index 6a3a2eca59..9b9852e9ef 100644 --- a/tests/test_asyncio/test_commands.py +++ b/tests/test_asyncio/test_commands.py @@ -3213,7 +3213,6 @@ async def test_memory_usage(self, r: redis.Redis): assert isinstance(await r.memory_usage("foo"), int) @skip_if_server_version_lt("4.0.0") - @pytest.mark.onlynoncluster async def test_module_list(self, r: redis.Redis): assert isinstance(await r.module_list(), list) for x in await r.module_list(): diff --git a/tests/test_commands.py b/tests/test_commands.py index 114fb6b686..b538dc3038 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -4909,7 +4909,6 @@ def test_latency_latest(self, r: redis.Redis): def test_latency_reset(self, r: redis.Redis): assert r.latency_reset() == 0 - @pytest.mark.onlynoncluster @skip_if_server_version_lt("4.0.0") @skip_if_redis_enterprise() def test_module_list(self, r):