debugEvictModelTemplateCache static method

  1. @visibleForTesting
void debugEvictModelTemplateCache(
  1. String cacheKey
)

Evicts the shared model template cache entry for cacheKey, as a hot reload would, without going through the asset hot-reload machinery (tests only). Live holders keep their clones; a later acquire under the same key installs a new entry alongside them.

Implementation

@visibleForTesting
static void debugEvictModelTemplateCache(String cacheKey) =>
    _ModelTemplateCache.evict(cacheKey);