public async Task<KeyValuePair<string, double>[]> getRangeByScoredept(string type = "p", long o = 0, int top = 1000, Order order = Order.Descending, double f = double.NegativeInfinity, double t = double.PositiveInfinity) { var redis = new RedisManager2<WeChatRedisConfig>(); if(type == "p") return await redis.GetRangeByScoreAsync<NameCardRedis, DeptProfessorZsetAttribute>("", o, top, order, f, t); else return await redis.GetRangeByScoreAsync<NameCardRedis, DeptStudentZsetAttribute>("", o, top, order, f, t); }
public async Task<KeyValuePair<string, double>[]> getRangeByScoreUnivs(long o, int top, Order order = Order.Descending, double f = double.NegativeInfinity, double t = double.PositiveInfinity) { var redis = new RedisManager2<WeChatRedisConfig>(); return await redis.GetRangeByScoreAsync<NameCardRedis, UnivZsetAttribute>("", o, top, order, f, t); }