<PackageReference Include="Relativity.Server.Utility.SDK" Version="5000.0.0" />

LazyItemPerWorkspaceCache<TItemType, TFactoryData>

public abstract class LazyItemPerWorkspaceCache<TItemType, TFactoryData>
Base implementation for storing items in the Instance.
protected abstract TimeSpan ExpirationTimeSpan { get; }

Gets the length of time until expiration.

protected abstract ExpirationType ExpirationType { get; }

Gets the expiration type of the values in this cache.

Initializes a new instance of LazyItemPerWorkspaceCache.

protected abstract TItemType CacheItemFactory(int workspaceArtifactID, TFactoryData factoryData, CancellationToken cancellationToken)

Gets or sets the function that retrieves the specified cache value if it is not present.

protected virtual string CacheKey(int workspaceArtifactID)

Generates the cache key associated with the specified workspace artifact id.

Gets the max execution time allowed while retrieving data from the cache.

public void Remove(int workspaceArtifactID)

Removes the cache entry associated with the specified workspace id.

public TItemType RetrieveValueByIdentifier(TFactoryData factoryData, int workspaceArtifactID)

Gets the value associated with the specified database.