Improve consistency of cache API methods.