Redis keep only top 50 elements in a sorted set -


is possible to, in sorted set, keep top x elements , remove others? know zremrangebyrank , zremrangebyscore couldn't figure out use these remove top x elements.

thanks

do mean like

zremrangebyrank set 0 -51 

Comments