A simple redis-like in pure python3, fully asyncio/thread/process compliant !
classics
commands : get/set/delete/keys & incr/decrsets
commands : sadd/sremqueue
commands : rpush/lpush/rpop/lpoppubsub
commands : subscribe/unsubscribe/get_event & publishcache
commands : setexping()
command ;-)KILL()
command (so a client can kill the server) NEW
Redis is great, but overbloated for my needs. Redys is simple, you can start the server side in an asyncio loop, and clients can interact with a simple in-memory db. Really useful when clients are in async/threads/process(workers)/multi-hosts world, to share a unique source of truth.
Client
) use threads, so it can't live in the same loop as the server (Server
). It's better to use it in another thread or process.AClient
) can live in the same loop as the server (Server
), but don't forget to await each methods (which are coroutines in async version)BTW, I use it in production since 2018: and no problems at all !!!! (it works as excepted)