def get_cached(location, **kwargs):
result = cache.get(location)<EOL>if not result or not result.ok:<EOL><INDENT>result = geocoder.get(location, **kwargs)<EOL>if result.ok:<EOL><INDENT>cache.set(location, result)<EOL><DEDENT><DEDENT>return result<EOL>
Simple wrapper that adds Django caching support to 'geocoder.get()'.