Interface IWeakInternCache<T>
Interface for caches used to intern reused values of the specified type. This type of cache support trimming of entries for values that are no longer used.
Inherited Members
Namespace: System.Memory
Assembly: Nuqleon.Memory.dll
Syntax
public interface IWeakInternCache<T> : IInternCache<T>, IMemoizationCache, IClearable, IDisposable
Type Parameters
Name | Description |
---|---|
T | Type of the values to intern. |
Methods
Trim()
Trims the intern cache to remove unused values.
Declaration
int Trim()
Returns
Type | Description |
---|---|
System.Int32 | The number of elements that were trimmed from the intern cache. |