Allow the cache source to be configurable.