Skip to content

Commit ae811f3

Browse files
Merge branch 'master' into DOC-4736-geo-index-examples
2 parents af64fd2 + f76afb2 commit ae811f3

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

doctests/dt_list.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,20 +165,20 @@
165165
# REMOVE_END
166166

167167
# STEP_START ltrim
168-
res27 = r.lpush("bikes:repairs", "bike:1", "bike:2", "bike:3", "bike:4", "bike:5")
168+
res27 = r.rpush("bikes:repairs", "bike:1", "bike:2", "bike:3", "bike:4", "bike:5")
169169
print(res27) # >>> 5
170170

171171
res28 = r.ltrim("bikes:repairs", 0, 2)
172172
print(res28) # >>> True
173173

174174
res29 = r.lrange("bikes:repairs", 0, -1)
175-
print(res29) # >>> ['bike:5', 'bike:4', 'bike:3']
175+
print(res29) # >>> ['bike:1', 'bike:2', 'bike:3']
176176
# STEP_END
177177

178178
# REMOVE_START
179179
assert res27 == 5
180180
assert res28 is True
181-
assert res29 == ["bike:5", "bike:4", "bike:3"]
181+
assert res29 == ["bike:1", "bike:2", "bike:3"]
182182
r.delete("bikes:repairs")
183183
# REMOVE_END
184184

redis/commands/search/commands.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,10 @@ def get(self, *ids):
442442

443443
return self.execute_command(MGET_CMD, self.index_name, *ids)
444444

445+
@deprecated_function(
446+
version="8.0.0",
447+
reason="deprecated since Redis 8.0, call info from core module instead",
448+
)
445449
def info(self):
446450
"""
447451
Get info an stats about the the current index, including the number of
@@ -912,6 +916,10 @@ def syndump(self):
912916

913917

914918
class AsyncSearchCommands(SearchCommands):
919+
@deprecated_function(
920+
version="8.0.0",
921+
reason="deprecated since Redis 8.0, call info from core module instead",
922+
)
915923
async def info(self):
916924
"""
917925
Get info an stats about the the current index, including the number of
@@ -1015,6 +1023,10 @@ async def spellcheck(self, query, distance=None, include=None, exclude=None):
10151023

10161024
return self._parse_results(SPELLCHECK_CMD, res)
10171025

1026+
@deprecated_function(
1027+
version="8.0.0",
1028+
reason="deprecated since Redis 8.0, call config_set from core module instead",
1029+
)
10181030
async def config_set(self, option: str, value: str) -> bool:
10191031
"""Set runtime configuration option.
10201032
@@ -1029,6 +1041,10 @@ async def config_set(self, option: str, value: str) -> bool:
10291041
raw = await self.execute_command(*cmd)
10301042
return raw == "OK"
10311043

1044+
@deprecated_function(
1045+
version="8.0.0",
1046+
reason="deprecated since Redis 8.0, call config_get from core module instead",
1047+
)
10321048
async def config_get(self, option: str) -> str:
10331049
"""Get runtime configuration option value.
10341050

0 commit comments

Comments
 (0)