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

IObjectCacheRepository

Represents an abstract object cache.
long Count { get; }

Gets the total number of items in the cache.

TimeSpan Expiration { get; set; }

Gets or sets the cache expiration applied to each item.

void Clear()

Clears the cache.

bool Contains(string key)

Determine whether the specified cached object associated with the key is contained within the cache.

void Delete(string key)

Deletes the object contained within the cache having the specified key.

TEntity SelectByKey<TEntity>(string key)

Selects a single cached object associated with the key.

void Upsert(string key, object value)

Inserts or updates the specified cached object whose name matches the key. If the object already exists within the cache, the value is replaced and the expiration period is updated with Expiration.

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

Inserts or updates the specified cached object whose name matches the key. If the object already exists within the cache, the value is replaced and the expiration period is updated with the specified value.