[sr-dev] ndb_redis module API

Vicente Hernando vhernando at systemonenoc.com
Tue May 15 12:38:08 CEST 2012


Hello,

these three attached patches export an API from ndb_redis module.

That API consists on three functions:

+       redisc_exec_f             exec;
+       redisc_get_reply_f      get_reply;
+       redisc_free_reply_f     free_reply;

exec function executes a redis command and attaches its response to a 
string.

get_reply uses former response string to get a hiredis redisReply structure.

free_reply deletes an unused response from local memory container.


Regards,
Vicente.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: ndb_redis_01_free_redisc_rpl_list.patch
Type: text/x-diff
Size: 816 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20120515/8a9fc582/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ndb_redis_02_free_reply.patch
Type: text/x-diff
Size: 6364 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20120515/8a9fc582/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ndb_redis_03_api.patch
Type: text/x-diff
Size: 3352 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20120515/8a9fc582/attachment-0002.patch>


More information about the sr-dev mailing list