- Redis Basics
- Redis - Home
- Redis - Overview
- Redis - Environment
- Redis - Configuration
- Redis - Data types
- Redis Commands
- Redis - Commands
- Redis - Keys
- Redis - Strings
- Redis - Hashes
- Redis - Lists
- Redis - Sets
- Redis - Sorted Sets
- Redis - HyperLogLog
- Redis - Publish Subscribe
- Redis - Transactions
- Redis - Scripting
- Redis - Connections
- Redis - Server
- Redis Advanced
- Redis - Backup
- Redis - Security
- Redis - Benchmarks
- Redis - Client Connection
- Redis - Pipelining
- Redis - Partitioning
- Redis - Java
- Redis - Php
- Redis Useful Resources
- Redis - Quick Guide
- Redis - Useful Resources
- Redis - Discussion
Redis - Sorted Set Zremrangebylex Command
Redis ZREMRANGEBYLEX command removes all the elements in the sorted set stored at the key between the lexicographical range specified by min and max.
Return Value
Integer reply, the number of elements removed.
Syntax
Following is the basic syntax of Redis ZREMRANGEBYLEX command.
redis 127.0.0.1:6379> ZREMRANGEBYLEX key min max
Example
redis 127.0.0.1:6379> ZADD myzset 0 a 1 b 2 c 3 d 4 e (integer) 5 redis 127.0.0.1:6379> ZREMRANGEBYLEX myzset 0 -1 (integer) 1 redis 127.0.0.1:6379> ZRANGE myzset 0 -1 WITHSCORES
redis_sorted_sets.htm
Advertisements