original_docstring: 
          Sets key/values based on a mapping if none of the keys are already set.
          Mapping can be supplied as a single dictionary argument or as kwargs.
          Returns a boolean indicating if the operation was successful.
  
          Clutser impl:
              Itterate over all items and do GET to determine if all keys do not exists.
              If true then call mset() on all keys.
          
docstring: Sets key/values based on a mapping if none of the keys are already set.
  Mapping can be supplied as a single dictionary argument or as kwargs.
  Returns a boolean indicating if the operation was successful.
  
  Clutser impl:
  Itterate over all items and do GET to determine if all keys do not exists.
  If true then call mset() on all keys.
docstring_tokens: Sets key / values based on a mapping if none of the keys are already set . Mapping can be supplied as a single dictionary argument or as kwargs . Returns a boolean indicating if the operation was successful . Clutser impl : Itterate over all items and do GET to determine if all keys do not exists . If true then call mset () on all keys .
code: def msetnx(self, *args, **kwargs):
          """
          Sets key/values based on a mapping if none of the keys are already set.
          Mapping can be supplied as a single dictionary argument or as kwargs.
          Returns a boolean indicating if the operation was successful.
  
          Clutser impl:
              Itterate over all items and do GET to determine if all keys do not exists.
              If true then call mset() on all keys.
          """
          if args:
              if len(args) != 1 or not isinstance(args[0], dict):
                  raise RedisError('MSETNX requires **kwargs or a single dict arg')
              kwargs.update(args[0])
  
          # Itterate over all items and fail fast if one value is True.
          for k, _ in kwargs.items():
              if self.get(k):
                  return False
  
          return self.mset(**kwargs)
code_tokens: def msetnx ( self , * args , ** kwargs ) : if args : if len ( args ) != 1 or not isinstance ( args [ 0 ] , dict ) : raise RedisError ( 'MSETNX requires **kwargs or a single dict arg' ) kwargs . update ( args [ 0 ] ) for k , _ in kwargs . items ( ) : if self . get ( k ) : return False return self . mset ( ** kwargs )
short_docstring: Sets key/values based on a mapping if none of the keys are already set.
short_docstring_tokens: Sets key / values based on a mapping if none of the keys are already set .
comment: """
          Sets key/values based on a mapping if none of the keys are already set.
          Mapping can be supplied as a single dictionary argument or as kwargs.
          Returns a boolean indicating if the operation was successful.
  
          Clutser impl:
              Itterate over all items and do GET to determine if all keys do not exists.
              If true then call mset() on all keys.
          """$SEP$# Itterate over all items and fail fast if one value is True.