added constains method to cache interface.