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 # 顯示有序集內(nèi)所有成員及其 score 值 1) "tom" 2) "2000" 3) "peter" 4) "3500" 5) "jack" 6) "5000" redis> ZREMRANGEBYSCORE salary 1500 3500 # 移除所有薪水在 1500 到 3500 內(nèi)的員工 (integer) 2 redis> ZRANGE salary 0 -1 WITHSCORES # 剩下的有序集成員 1) "jack" 2) "5000"