Added documentation for InstanceCache and CacheInvalidator.