import java.util.concurrent.ExecutionException;
public class WebbitServer {
public static void main(String[] args) throws ExecutionException, InterruptedException {
final RedisClient redis = RedisClient.connect("localhost", 6379).get();
WebServers.createWebServer(8080).add(new HttpHandler() {
public void handleHttpRequest(final HttpRequest request, final HttpResponse response, final HttpControl control) throws Exception {
System.out.println(request.uri());
redis.get(request.uri()).onSuccess(new Block<BulkReply>() {
public void apply(final BulkReply bulkReply) {
control.execute(new Runnable() {