lib/CacheUtils.js
/**
 * Merges pending requests count for a list of cache instances to a list
 *
 * @param {Array.<Object>} cacheInstances
 * @return {Array.<Object>} A list of pending requests count objects
 */
Merges pending requests count for a list of cache instances to a list
@param {Array.} cacheInstances
@return {Array.} A list of pending requests count objects
Merges pending requests count for a list of cache instances to a list @param { Array . } cacheInstances @return { Array . } A list of pending requests count objects
function mergePendingRequestCounts(cacheInstances) {
  if (!cacheInstances) return []
  var requestCounts = []
  for (var i = 0; i < cacheInstances.length; i++) {
    var instanceRequestCounts = cacheInstances[i].getPendingRequestsCount()
    requestCounts = requestCounts.concat(instanceRequestCounts)
  }
  return requestCounts
}
function mergePendingRequestCounts ( cacheInstances ) { if ( ! cacheInstances ) return [ ] var requestCounts = [ ] for ( var i = 0 ; i < cacheInstances . length ; i ++ ) { var instanceRequestCounts = cacheInstances [ i ] . getPendingRequestsCount ( ) requestCounts = requestCounts . concat ( instanceRequestCounts ) } return requestCounts }
Merges pending requests count for a list of cache instances to a list
 @param {Array.<Object>} cacheInstances
 @return {Array.<Object>} A list of pending requests count objects
Merges pending requests count for a list of cache instances to a list @param { Array . <Object > } cacheInstances @return { Array . <Object > } A list of pending requests count objects