Skip to content

Commit 32ef45c

Browse files
authored
Bump redis to 6.0.0 and related fixes (#336)
* Bump redis to 6.0.0 and related fixes This contains a variety of fixes around Redis: * Bump Redis to 6.0.0. * Remove `types-redis` as no longer required for `redis>5.0`. * Fixed DeprecationWarning to use `.aclose()` on async client. * Update CHANGELOG.md
1 parent ed37938 commit 32ef45c

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## development
44

5+
- Remove `types-redis` from dev dependencies (#336)
6+
- Bump redis to 6.0.0 and address async `.close()` deprecation warning (#336)
57
- Avoid race condition when unlinking files in `FileStorage`. (#334)
68

79
## 0.1.2 (5th April, 2025)

hishel/_async/_storages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ async def retrieve(self, key: str) -> tp.Optional[StoredResponse]:
507507
return self._serializer.loads(cached_response)
508508

509509
async def aclose(self) -> None: # pragma: no cover
510-
await self._client.close()
510+
await self._client.aclose()
511511

512512

513513
class AsyncInMemoryStorage(AsyncBaseStorage):

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ yaml = [
3939
]
4040

4141
redis = [
42-
"redis==5.0.4"
42+
"redis==6.0.0"
4343
]
4444

4545
sqlite = [
@@ -92,7 +92,7 @@ filterwarnings = []
9292

9393
[tool.coverage.run]
9494
omit = [
95-
"venv/*",
95+
"venv/*",
9696
"hishel/_sync/*",
9797
"hishel/_s3.py"
9898
]
@@ -136,6 +136,5 @@ dev = [
136136
"trio==0.28.0",
137137
"types-boto3==1.0.2",
138138
"types-pyyaml==6.0.12.20240311",
139-
"types-redis==4.6.0.20240425",
140139
"zipp>=3.19.1",
141140
]

0 commit comments

Comments
 (0)