   ###
   Writes curernt cache to local storage
   ###
-  writeCache: -> localStorage.setItem config.key, JSON.stringify cache
+  write: -> localStorage.setItem config.key, JSON.stringify cache
 
   ###
   Build out location object properties for caching

  ###
  removeLocation: (slug) ->
    delete cache[slug]
    @writeCache()

  ###
  Check if a location exists in the cache

  return bool
  ###
  locationNeedsUpdate: (slug, units = 'imperial') ->
    # If there's no matching cache slug, we definitely need to update
    return true if !@locationExists slug

    # If there's not weather data, skip the cache
    latest = cache[slug].weather?[units]
    return true if !latest
