rewrite redis setting