Defined a cache interface.