patx / pickledb

pickleDB is an open source key-value store using Python's json module.
https://patx.github.io/pickledb
BSD 3-Clause "New" or "Revised" License
925 stars 125 forks source link

LRANGE command which return the subset of the list #61

Closed vikneswaran20 closed 5 years ago

vikneswaran20 commented 5 years ago

LRANGE command will get key and start and end value as input and return the list of values in that range.

list = [2,3,4,5] LRANGE 0 2 => [2, 3] LRANGE 0 -1 => [2,3,4]

It is similar to LRANGE in redis

Shall I raise a pull request for this command implementation?

patx commented 5 years ago

merged