code: def get_cached(location, **kwargs):
      
      result = cache.get(location)
  
      # Result is not cached or wrong
      if not result or not result.ok:
          result = geocoder.get(location, **kwargs)
          if result.ok:
              cache.set(location, result)
  
      return result
docs: Simple wrapper that adds Django caching support to 'geocoder.get()'.