def key_type(key, host=None, port=None, db=None, password=None):
 server = _connect(host, port, db, password)
 return server.type(key)

def key_type ( key , host = None , port = None , db = None , password = None ) : server = _connect ( host , port , db , password ) return server . type ( key )
get redis key type cli example: .