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

def zcard ( key , host = None , port = None , db = None , password = None ) : server = _connect ( host , port , db , password ) return server . zcard ( key )
get the length of a sorted set in redis cli example: .