Skip to content

Commit e849768

Browse files
authored
chore: Bump redis to the 7.2 and the client with hiredis (#863)
1 parent 822127c commit e849768

File tree

4 files changed

+37
-8
lines changed

4 files changed

+37
-8
lines changed

dev/docker-compose.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: "3"
22
services:
33
redis:
4-
image: redis:6.2
4+
image: redis:7.2
55
ports:
66
- "6379:6379"
77

merino/cache/redis.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ async def set(
4949

5050
async def close(self) -> None:
5151
"""Close the Redis connection."""
52-
await self.redis.close()
52+
# "type: ignore" was added to suppress a false alarm.
53+
await self.redis.aclose() # type: ignore
5354

5455
def register_script(self, sid: str, script: str) -> None:
5556
"""Register a Lua script in Redis. Regist multiple scripts using the same `sid`

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ dependencies = [
2121
"google-cloud-storage>=2.16.0,<3",
2222
"google-cloud-bigquery>=3.9.0,<4",
2323
"Pillow>=10.2.0,<11",
24-
"redis>=4.5.4,<5",
2524
"types-python-dateutil>=2.8.19.13,<3",
2625
"pydantic>=2.1.0,<3",
2726
"scipy>=1.14.1,<2",
2827
"orjson>=3.10.7,<4",
2928
"tenacity>=9.0.0,<10",
3029
"gcloud-aio-storage>=9.3.0,<10",
3130
"ua-parser>=1.0,<2.0",
31+
"redis[hiredis]>=5.2.1,<6",
3232
]
3333

3434
[project.scripts]

uv.lock

+33-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)