Cache with polcies