java - What's the expected behavior if memcached getBulk() doesn't find one or more keys? -


i have pretty simple wrapper around spymemcached's asyncgetbulk(collection keys) method , returns result:

    future f = memcache.asyncgetbulk(sublist);     try      {                        result = f.get(5, timeunit.seconds);     }      catch(exception ex)      {         f.cancel(true);         //ex.printstacktrace();         system.out.println("get failed");     } 

i'm passing arraylist of 3,000 keys, of in cache. expectation in resulting map, keys not found either not appear or have null value. however, if 1 key not present in cache, {} , status message "not_found". expected behavior, or doing wrong?


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -