Duplicate declaration redis issue