def hmset(key, **fieldsvals):
 host = fieldsvals.pop('host', None)
 port = fieldsvals.pop('port', None)
 database = fieldsvals.pop('db', None)
 password = fieldsvals.pop('password', None)
 server = _connect(host, port, database, password)
 return server.hmset(key, **fieldsvals)

def hmset ( key , ** fieldsvals ) : host = fieldsvals . pop ( 'host' , None ) port = fieldsvals . pop ( 'port' , None ) database = fieldsvals . pop ( 'db' , None ) password = fieldsvals . pop ( 'password' , None ) server = _connect ( host , port , database , password ) return server . hmset ( key , ** fieldsvals )
sets multiple hash fields to multiple values .