diff options
Diffstat (limited to 'redis/commands.py')
-rw-r--r-- | redis/commands.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/redis/commands.py b/redis/commands.py index 69aae20..c2d9ff7 100644 --- a/redis/commands.py +++ b/redis/commands.py @@ -2845,6 +2845,16 @@ class Commands: def cluster(self, cluster_arg, *args): return self.execute_command('CLUSTER %s' % cluster_arg.upper(), *args) + def replicaof(self, *args): + """ + Update the replication settings of a redis replica, on the fly. + Examples of valid arguments include: + NO ONE (set no replication) + host port (set to the host and port of a redis server) + see: https://redis.io/commands/replicaof + """ + return self.execute_command('REPLICAOF', *args) + def eval(self, script, numkeys, *keys_and_args): """ Execute the Lua ``script``, specifying the ``numkeys`` the script |