hiredis + libuv async example

by syoyo

redis is a fast, compact and great KVS and messaging library.

hiredis is official C client of redis and it provides async API utilizing libev and libevent, but lacks libuv.

So I made libuv version of async hiredis API example.

https://github.com/syoyo/redis/blob/unstable/deps/hiredis/example-libuv.c

libuv adapter

https://github.com/syoyo/redis/blob/unstable/deps/hiredis/adapters/libuv.h

was grabbed from hugu project

http://code.google.com/p/fugu/source/browse/trunk/src/hiredis/adapters/libuv.h

Its so simple to adapt hiredis async API since its written by simple C API 😉

Hope this helps for someone.

Advertisements