refactor of get_redis_items