trio-redis
Example
import trio
from trio_redis import Redis
async def hello_world():
async with Redis() as redis:
await redis.set("some-key", "hello, world!")
print(await redis.get("some-key"))
trio.run(hello_world)
A Redis client based on Trio.
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more about the CLI.
Please sign in to use Codespaces.
If nothing happens, download GitHub Desktop and try again.
If nothing happens, download GitHub Desktop and try again.
If nothing happens, download Xcode and try again.
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
import trio
from trio_redis import Redis
async def hello_world():
async with Redis() as redis:
await redis.set("some-key", "hello, world!")
print(await redis.get("some-key"))
trio.run(hello_world)
A Redis client based on Trio.