0xsky / xredis

Redis C++ client, support the data slice storage, support redis cluster, thread-safe,multi-platform,connection pool, read/write separation.
GNU General Public License v3.0
337 stars 153 forks source link

xRedisClient::zremrangebyscore 类型说明符错误 #58

Closed Ritchie1108 closed 4 years ago

Ritchie1108 commented 4 years ago
bool xRedisClient::zremrangebyscore(const RedisDBIdx& dbi, const KEY& key, double min, double  max, int64_t& count){
    ....
    return command_integer(dbi, count, "ZREMRANGEBYSCORE %s %d %d", key.c_str(), min, max);
}

应调整为

bool xRedisClient::zremrangebyscore(const RedisDBIdx& dbi, const KEY& key, double min, double  max, int64_t& count){
    ....
    return command_integer(dbi, count, "ZREMRANGEBYSCORE %s %f %f", key.c_str(), min, max);
}
0xsky commented 4 years ago

已经修复,感谢!