add query for redis