Redis autocomplete
Posted
by Alfred
on Stack Overflow
See other posts from Stack Overflow
or by Alfred
Published on 2009-12-24T11:35:25Z
Indexed on
2010/04/27
21:23 UTC
Read the original article
Hit count: 502
redis
|autocomplete
Hi,
How can I implement an autocomplete using redis?
Say for example I have an array ["alfred","joel","jeff","addick"]
. When I type a
I get ["alfred", "addick"]
I hope you get the point. How can I implement this using redis commands efficiently(if possible but I think it is). It would be great if I could get some simple commands I can try out via telnet to mimic this behaviour.
Thanks
P.S: Merry x-mas to all of you :)
© Stack Overflow or respective owner