This commit is contained in:
parent
69a848d6a7
commit
ff9c0a0b82
|
@ -57,6 +57,12 @@ class RedisService:
|
||||||
return
|
return
|
||||||
await self._client.publish(channel, data)
|
await self._client.publish(channel, data)
|
||||||
|
|
||||||
|
async def set(self, key, data):
|
||||||
|
await self.execute("set", key, data)
|
||||||
|
|
||||||
|
async def get(self, key, data):
|
||||||
|
return await self.execute("set", key)
|
||||||
|
|
||||||
|
|
||||||
redis = RedisService()
|
redis = RedisService()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user