Tweak redis code to work for a web server