Help with alternative data storage
Opened this issue · 1 comments
brockfanning commented
Hi, I was wondering if I could get an example of how to make a search index in something other than Redis. Specifically I'm hoping to put the index data into a normal Javascript object.
I see that I need to override reds.createClient(), and that the object that is returned needs to implement a multi() function and zrevrangebyscore() function. But I don't know exactly what those functions should do, or if the object needs implement anything else.
Thanks for you help!
plus- commented
http://redis.io/commands/zrevrangebyscore
multi is just sugar to run multiple redis commands.