up vote down votefavorite <https://stackoverflow.com/questions/46659006/memcached-fetch-giving-inconsistent-results#>
I am using memcached_fetch and memcached_mget to get results in chunk from memcache. I found it do not fetches all results as expected for all keys passed in char *key_val[keys], its returning less numbers of values than expected. Am i missing something ? Code is below. char *key_val[15000];size_t key_length[15000]; // all keys are 32 char longchar return_key[MEMCACHED_MAX_KEY];size_t return_key_length;char *return_value;size_t return_value_length;uint32_t flags;memcached_return_t rc; int count = 0; const char *config_string= "--SERVER=127.0.0.1"; memcached_st *memc= memcached(config_string, strlen(config_string)); rc= memcached_mget(memc, key_val, key_length, 15000); while ((return_value = memcached_fetch(memc, return_key, &return_key_length, &return_value_length, &flags, &rc))) { count++;} std::cout << count << endl; // gives incorrect count, expecting 15000 Kindly assist. Thanks Nirmal Vatsyayan -- --- You received this message because you are subscribed to the Google Groups "memcached" group. To unsubscribe from this group and stop receiving emails from it, send an email to memcached+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.