Rtrie
Trie based autocomplete with Redis.
Usage
var Rtrie = cities = "cities"; // index(term, id[, metadata, priority])citiesindex"Campinas" 1 state: "SP" population: 1000000 10;citiesindex"Americana" 2 state: "SP" population: 250000 ;citiesindex"Santa Bárbara D'Oeste" 3 state: "SP" population: 190000 ;citiesindex"Campina Grande" 4 state: "PB" population: 20000 ; // search(term, callback)cities; You can also specify a limit for the search function:var limit = 1;cities; You may also creat a totally different item type database:var names = "names"; namesindex"Rodrigo" 1 age: 27 ;namesindex"Gustavo" 2 age: 16 ;namesindex"Frederico" 3 age: 30 ;