mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
fix: redis failed with middleware
This commit is contained in:
parent
bb7b299b9d
commit
cccabced6e
1 changed files with 2 additions and 0 deletions
|
|
@ -307,6 +307,8 @@ class AioRedisAdapterV1(AioRedisAdapterBase):
|
|||
return True
|
||||
|
||||
async def get(self, name, **kwargs):
|
||||
if not self._redis:
|
||||
await self.get_redis()
|
||||
return await self._redis.get(name, encoding="utf8", **kwargs)
|
||||
|
||||
async def set(self, name, value, ex=None, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue