def set_cache_under_settings(destination, setting, key_prefix, value, ttl, list_=False):
 default = ({} if (not list_) else [])
 existing = destination.settings.get(setting, default)
 if value:
  if list_:
   value.extend(existing)
  else:
   value.update(existing)
  set_cache(((key_prefix + '.') + setting), value, ttl)
  destination.settings[setting] = value

def set_cache_under_settings ( destination , setting , key_prefix , value , ttl , list_ = False ) : default = ( { } if ( not list_ ) else [ ] ) existing = destination . settings . get ( setting , default ) if value : if list_ : value . extend ( existing ) else : value . update ( existing ) set_cache ( ( ( key_prefix + '.' ) + setting ) , value , ttl ) destination . settings [ setting ] = value
take the value passed .