Url Shortener using redis and sinatra gems