           if processedCache[bucketIndex].ids.length < 3
             newIds = item.ids.slice 0, 3 - processedCache[bucketIndex].ids.length
             processedCache[bucketIndex].ids = processedCache[bucketIndex].ids.concat newIds
-          processedCache[bucketIndex].count += item.count
-          processedCache[bucketIndex].createdAt[1] = item.createdAt.last
+          processedCache[bucketIndex].count        += item.count
+          processedCache[bucketIndex].createdAt[1]  = item.createdAt.last
       else
         processedCache.push item
 

          unsetModifier["activities.#{idToDelete}"] = 1
          unsetModifier["overview.#{overviewIndexToDelete}"] = 1


          log ">>>", unsetModifier

          cache.update
            $unset : unsetModifier
            $set   : isFull : no
          , ->
            log "activity removed from cache!"

  # update:do ->
  #   updateQueue = []
  #   update =(rest..., callback)->

  #     updateQueue.push =>
  #       jraphical.Module::update.apply @, rest.concat =>
  #         callback arguments
  #         updateQueue.next()

  #     unless updateQueue.length
  #       daisy updateQueue

module.exports = class JActivityCache extends jraphical.Module

  {daisy}   = require 'bongo'

  typesToBeCached = [
    'CStatusActivity'
