 redis = require 'redis'
 rsvp = require 'rsvp'
 request = require 'request'
+moment = require 'moment'
 
 # Custom
 ga = require './ga'

        else
          data = totalPkgs: body.length
          db.set key, JSON.stringify data
          resolve data
        return


        else # not cached
          console.info "[INFO] not cached / fetching [#{ key }] from GA."
          if key is 'overview'
            _fetchAndCache.overview()
          else
            _fetchAndCache.ga()
    return

init = ->
