antirez/redis — pull request #798 by charsyam (2012-11-28 19:59:58+00:00)
Title: suggest zregCommand to search sorted set with regexp(stringmatchlen)

1. Why?
some users use KEYS command to search special keyspaces. and they uses KEYS Command in production. so it can cause many problems. because KEYS command has to visit all keys. so for example, if redis has more than 1M~10M keys, it can't process other commands well.
so. there is alternative. storing key name in the sorted set or other collections. but it is not useful because it doesn;t support regexp like KEYS. and I choose Sorted Set, Inserting and Deleting function has to be fast to use in above situation.

2.How?
so I suggest zregCommand like KEYS. it can use like this.
```c
zreg keyname
```

Thank you.