hasCachedKey static method
Check if a keyword has been cached (logged once)
@paramkey: The keyword to check in the cache
@return: Returns true if the keyword has been logged before, false otherwise
Used with printOnceIfContains parameter to prevent duplicate log messages
Implementation
static bool hasCachedKey(String key) {
return _cachedKeys.contains(key);
}