diff options
author | Chayim <chayim@users.noreply.github.com> | 2021-12-23 12:18:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-23 12:18:34 +0200 |
commit | 83570a74483794a1465e10c10e3405d0fbbf0589 (patch) | |
tree | acbe2eebce1998d6dfdf184a99aa159050507d7c /redis/commands/core.py | |
parent | 3347888bfa19f9e82a71ae6dc13a4837c87ea893 (diff) | |
download | redis-py-83570a74483794a1465e10c10e3405d0fbbf0589.tar.gz |
Support for SELECT (#1825)
Diffstat (limited to 'redis/commands/core.py')
-rw-r--r-- | redis/commands/core.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/redis/commands/core.py b/redis/commands/core.py index 0823315..4f0accd 100644 --- a/redis/commands/core.py +++ b/redis/commands/core.py @@ -780,6 +780,13 @@ class ManagementCommands: """ return self.execute_command("SWAPDB", first, second, **kwargs) + def select(self, index, **kwargs): + """Select the Redis logical database at index. + + See: https://redis.io/commands/select + """ + return self.execute_command("SELECT", index, **kwargs) + def info(self, section=None, **kwargs): """ Returns a dictionary containing information about the Redis server |