Returns a dimension from the cache or gets it from the API and caches it.
The name of the dimension.
The dimension.
Returns a dimension from the cache or gets it from the API and caches it.