Hiredis SMEMBERS 활용
redisReply *reply; redisAppendCommand(context, "SMEMBERS myset"); redisGetReply(context, (void**)&reply); for (int i = 0; i < reply->elements; i++) { // reply->element[i]->str; // myset } freeReplyObject(reply);
참고 : https://redis.io/commands/smembers
참고 : https://github.com/redis/hiredis/blob/master/examples/example.c
'Programming > Redis' 카테고리의 다른 글
Redis Client Connect Test (0) | 2016.10.26 |
---|---|
Hiredis Subscribe/Publish with CWinThread (0) | 2016.10.05 |
How to use Pub/sub with hiredis in C++? (0) | 2016.09.29 |
hiredis fatal error C1853: (0) | 2016.09.29 |
hiredis MFC import Visual Studio 2013 (0) | 2016.09.28 |