Added support for user-defined cache endpoint.