Need to get the keys from the server appended in last.

25 views
Skip to first unread message

niharika

unread,
Jun 15, 2012, 5:40:07 AM6/15/12
to memc...@googlegroups.com
Hi everyone,

Could some one wil help me in retrieving the keys from the list of servers...

I have written this oath of code:
===============================
memc= memcached_create(NULL);
memcached_server_st *server_pool= memcached_servers_parse("192.168.1.7:11211,192.168.0.54:11214");
memcached_server_push(memc, server_pool);

//for replication
memcached_st *memc_clone= memcached_clone(NULL, memc);
memcached_behavior_set(memc_clone, MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS, 1);
===============================


This stores the keys in the two servers "192.168.1.7" and 192.168.0.54" which i can see in logs..
BUT while retrieving  the keys from "memc" it i sunable to get any value form the server which is appended/added in the last. like here it is "192.168.0.54"

this is the line of code for gettign the key value------------------------------------------------------------------------------
 printf("%s: \n\n", memcached_get(memc_clone,"key1", 12,&return_value_length, &flags, &rc));
-------------------------------------------------------------------------------------------------------------------------------------------------------

Need help.
Niharika



Santhosh Kumar

unread,
Apr 23, 2013, 2:13:00 AM4/23/13
to memc...@googlegroups.com
@Niharika
Me too facing the same problem now... did you find the reason for that?
Reply all
Reply to author
Forward
0 new messages