code: function cacheResults (result) {
      // JSON encode result
      try {
          var cacheValue = JSON.stringify(result)
      }
      catch (err) {
          // ignore errors
      }
      // cache value
      if (defined(cacheValue)) {
          // debug
          debug('view:id:collection:set', this.idCacheKey)
          // cache results
          return this.cache.redis.setAsync(this.idCacheKey, cacheValue)
      }
  }
docs: @function cacheResults
  
  cache view results - called by ImmutableCoreModelQuery after completing
  query and applying views
  
  @param {object} result
  
  @returns {Promise}