ideawu / ssdb

SSDB - A fast NoSQL database, an alternative to Redis
http://ssdb.io/
BSD 3-Clause "New" or "Revised" License
8.19k stars 1.4k forks source link

How can to returns all keys matching pattern? #813

Open LeMoussel opened 8 years ago

LeMoussel commented 8 years ago

scan List key-value pairs with keys in range (key_start, key_end]. But how can I looking for a way to find keys in a subset of keyspace? Is It possible to only iterate elements matching a given glob-style pattern?

For example: h?llo matches all keys hello, hallo and hxllo hllo matches all key hllo and heeeello h matches all key starting with h

Some idea how can I do this?

ideawu commented 8 years ago

SSDB is ONLY able to find keys by preifx, that is the case "h matches all key starting with h".