refactor to redis-console