Assets/Watson/Scripts/Services/NaturalLanguageClassifier/NaturalLanguageClassifier.cs
/// <summary>
/// Flush all classifier caches or a specific cache.
/// </summary>
/// <param name="classifierId">If not null or empty, then the specific cache will be flushed.</param>
Flush all classifier caches or a specific cache.
Flush all classifier caches or a specific cache .
public void FlushClassifyCache(string classifierId = null)
        {
            if (!string.IsNullOrEmpty(classifierId))
            {
                DataCache cache = null;
                if (m_ClassifyCache.TryGetValue(classifierId, out cache))
                    cache.Flush();
            }
            else
            {
                foreach (var kp in m_ClassifyCache)
                    kp.Value.Flush();
            }
        }
public void FlushClassifyCache ( string classifierId = null ) { if ( ! string . IsNullOrEmpty ( classifierId ) ) { DataCache cache = null ; if ( m_ClassifyCache . TryGetValue ( classifierId , out cache ) ) cache . Flush ( ) ; } else { foreach ( var kp in m_ClassifyCache ) kp . Value . Flush ( ) ; } }
Flush all classifier caches or a specific cache.
Flush all classifier caches or a specific cache .
classifierId
string
If not null or empty, then the specific cache will be flushed.
If not null or empty then the specific cache will be flushed .