<PackageReference Include="Relativity.Server.Transfer.SDK" Version="7.7.0" />

TransferCache

public static class TransferCache
using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Runtime.Caching; namespace Relativity.Transfer { public static class TransferCache { private static readonly object SyncRoot = new object(); private static MemoryCache instance; public static MemoryCache Default { get { if (instance == null) { lock (SyncRoot) { if (instance == null) instance = new MemoryCache("TAPI-Cache", (NameValueCollection)null); } } return instance; } } public static void Clear() { foreach (string item in (from kvp in (IEnumerable<KeyValuePair<string, object>>)Default select kvp.Key).ToList()) { Default.Remove(item, (string)null); } } } }