I'd prefer to use `setCache` here (see code block above) so that we can enforce the type.