Changing redis insert and select logic