docs/code-frags/counter-col/lib/CounterCol.js
function(update, options) {
          var count = 0
          for (var id in this.cache) {
            this.cache[id].count += update.n
            count += 1
          }
          // demonstrate full return type
          return {val: count, created: false}
        }
function(update, options) {
          var count = 0
          for (var id in this.cache) {
            this.cache[id].count += update.n
            count += 1
          }
          // demonstrate full return type
          return {val: count, created: false}
        }
post-updateConfig-memCacheCounterBasic pre-update-memCacheCounterBasic