use redis for storing messages - next

This commit is contained in:
knst-kotov
2022-01-24 14:56:55 +03:00
parent c7639f38ae
commit ca9c3e0cee
3 changed files with 54 additions and 38 deletions

View File

@@ -25,8 +25,11 @@ class Redis:
async def execute(self, command, *args, **kwargs):
return await self._instance.execute_command(command, *args, **kwargs)
async def lrange(self, name, start, end):
return await self._instance.lrange(name, start, end)
async def lrange(self, key, start, stop):
return await self._instance.lrange(key, start, stop)
async def mget(self, key, *keys):
return await self._instance.mget(key, *keys)
async def test():