lib/memcached.js
function handle(err, results) {
      if (err) {
        errors.push(err);
      }

      // add all responses to the array
      (Array.isArray(results) ? results : [results]).forEach(function each(value) {
        if (value && memcached.namespace.length) {
          var ns_key = Object.keys(value)[0]
            , newvalue = {};

          newvalue[ns_key.replace(memcached.namespace, '')] = value[ns_key];
          Utils.merge(responses, newvalue);
        } else {
          Utils.merge(responses, value);
        }
      });

      if (!--calls){
          callback(errors.length ? errors : undefined, responses);
      }
    }
function handle(err, results) {
      if (err) {
        errors.push(err);
      }

      // add all responses to the array
      (Array.isArray(results) ? results : [results]).forEach(function each(value) {
        if (value && memcached.namespace.length) {
          var ns_key = Object.keys(value)[0]
            , newvalue = {};

          newvalue[ns_key.replace(memcached.namespace, '')] = value[ns_key];
          Utils.merge(responses, newvalue);
        } else {
          Utils.merge(responses, value);
        }
      });

      if (!--calls){
          callback(errors.length ? errors : undefined, responses);
      }
    }
function handle ( err , results ) { if ( err ) { errors . push ( err ) ; } // add all responses to the array ( Array . isArray ( results ) ? results : [ results ] ) . forEach ( function each ( value ) { if ( value && memcached . namespace . length ) { var ns_key = Object . keys ( value ) [ 0 ] , newvalue = { } ; newvalue [ ns_key . replace ( memcached . namespace , '' ) ] = value [ ns_key ] ; Utils . merge ( responses , newvalue ) ; } else { Utils . merge ( responses , value ) ; } } ) ; if ( ! -- calls ) { callback ( errors . length ? errors : undefined , responses ) ; } }
handle multiple responses and cache them untill we receive all.
handle multiple responses and cache them untill we receive all .