def _get_configuration(shop):
 configuration = cache.get(_get_cache_key(shop))
 if (configuration is None):
  configuration = _cache_shop_configuration(shop)
 return configuration

def _get_configuration ( shop ) : configuration = cache . get ( _get_cache_key ( shop ) ) if ( configuration is None ) : configuration = _cache_shop_configuration ( shop ) return configuration
get global or shop specific configuration with caching .