Example works with both connect-redis and sockets.