def set(shop, key, value):
 ConfigurationItem.objects.update_or_create(shop=shop, key=key, defaults={u'value': value})
 if shop:
  cache.set(_get_cache_key(shop), None)
 else:
  cache.bump_version(_SHOP_CONF_NAMESPACE)

def set ( shop , key , value ) : ConfigurationItem . objects . update_or_create ( shop = shop , key = key , defaults = { u'value' : value } ) if shop : cache . set ( _get_cache_key ( shop ) , None ) else : cache . bump_version ( _SHOP_CONF_NAMESPACE )
set configuration item value for a shop or globally .