<PackageReference Include="Relativity.Server.Import.SDK" Version="2.9.2" />

MemoryCacheRepository

Represents a class object used to provide memory-based cache.
public long Count { get; }

public TimeSpan Expiration { get; set; }

Initializes a new instance of the MemoryCacheRepository class.

public MemoryCacheRepository(TimeSpan expiration)

Initializes a new instance of the MemoryCacheRepository class.

public MemoryCacheRepository(MemoryCache cache, TimeSpan expiration)

Initializes a new instance of the MemoryCacheRepository class.

public void Clear()

public bool Contains(string key)

public void Delete(string key)

public void Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

protected virtual void Dispose(bool disposing)

Releases unmanaged and - optionally - managed resources.

public TEntity SelectByKey<TEntity>(string key)

public void Upsert(string key, object value)

public void Upsert(string key, object value, TimeSpan expiration)