modify_score_fully
增量修改有序集score,并更新时间后缀,同时更新content里的score
声明
array modify_score_fully(string database, string rank_name, string member_key, mixed score_delta, float time_score, int min_score = 0)
参数
参数名 | 描述 |
---|---|
database | db no |
rank_name | rank name |
member_key | 成员key |
score_delta | score变化量 |
time_score | score时间后缀(小数) |
min_score | 保底分数(默认为0) |
返回值
正确,返回 [ OK, (新的分数, 新的排名)]
错误,返回 [ 错误号, nil ]