rem

UK[ˌɑ:r i: ˈem] US[ˌɑ:ri:'em]

n.DOS command: specified by DOS Ignored command line; (sleep) REM

range

UK[reɪndʒ] US[rendʒ]

n.range; Range; Category; Arrangement (of mountains, houses, etc.)

vi. Search; Change; Extend; Roam

vt. Arrange; Sort (in a certain position or order); Classify...; Wandering

adj. Pasture, grazing area

Third person singular: ranges Plural: ranges Present participle: ranging Past tense: ranged Past participle: ranged

by

英[baɪ] 美[baɪ]

prep.beside...;expression method;due to;passing through

adv.passing;meaning to retain or save Time use; short visit

score

UK[skɔ:(r)] US[skɔr, skor]

n.Score; score; score; 20

v. score; score; score; win

Third person singular: scores Plural: scores Present participle: scoring Past tense: scored Past participle: scored

redis ZREMRANGEBYSCORE command syntax

Function:Remove all members in the ordered set key whose score value is between min and max (including equal to min or max).

Syntax:ZREMRANGEBYSCORE key min max

Instructions:Since version 2.1.6, members whose score value is equal to min or max can also be Included, see the ZRANGEBYSCORE command for details.

Available versions:>= 1.2.0

Time complexity:O(log(N) M), N is ordered is the cardinality of the set, and M is the number of removed members.

Returns:The number of removed members.

redis ZREMRANGEBYSCORE command example

redis> ZRANGE salary 0 -1 WITHSCORES # 显示有序集内所有成员及其 score 值 1) "tom" 2) "2000" 3) "peter" 4) "3500" 5) "jack" 6) "5000" redis> ZREMRANGEBYSCORE salary 1500 3500 # 移除所有薪水在 1500 到 3500 内的员工 (integer) 2 redis> ZRANGE salary 0 -1 WITHSCORES # 剩下的有序集成员 1) "jack" 2) "5000"