title: Most straightforward way to cache geocoding data
body: <p>I am using <code>geopy</code> to get lat/long coordinates for a list of addresses.  All the documentation points to limiting server queries by caching (many questions here, in fact), but few actually give practical solutions.</p>
  
  <p>What is the best way to accomplish this?</p>
  
  <p>This is for a self-contained data processing job I'm working on ... no app platform involved.  Just trying to cut down on server queries as I run through data that I will have seen before (very likely, in my case).</p>
  
  <p>My code looks like this:</p>
  
  <pre><code>from geopy import geocoders
  def geocode( address ):
      # address ~= "175 5th Avenue NYC"
      g = geocoders.GoogleV3()
      cache = addressCached( address )
  
      if ( cache != False ): 
          # We have seen this exact address before,
          # return the saved location
          return cache
  
      # Otherwise, get a new location from geocoder
      location = g.geocode( address )
  
      saveToCache( address, location )
      return location
  
  def addressCached( address ):
      # What does this look like?
  
  def saveToCache( address, location ):
      # What does this look like?
  </code></pre>