<PackageReference Include="Relativity.Transfer.Client" Version="7.2.7" />

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() { List<string> list = (from kvp in (IEnumerable<KeyValuePair<string, object>>)Default select kvp.Key).ToList(); foreach (string item in list) { Default.Remove(item, (string)null); } } } }