Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Redis based autocomplete using Java

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README
Redis based autocomplete in Java
===

Credits: Salvatore - http://antirez.com/post/autocomplete-with-redis.html

Dependency
===
1) Java Redis Client - http://github.com/xetorthio/jedis

Usage
===
Jedis redis = new Jedis("localhost", 6379);
URL url = new URL("http://antirez.com/misc/female-names.txt");
AutoComplete autoComplete = new AutoComplete.Builder(redis, "redisKey", url)
                                            .clear(true)
                                            .populate(true)
                                            .build();
List<String> results = autoComplete.complete("marcell", 10);
Something went wrong with that request. Please try again.