Redis code from pub sub blog post