use redis as a block