Table of Contents

Interface IGuidCache<T>

Namespace
Shift.Common.Timeline.Services
Assembly
Shift.Common.dll

Provides a generic cache for objects indexed by globally unique identifiers.

public interface IGuidCache<T>

Type Parameters

T
Extension Methods

Methods

Add(Guid, T, int, bool)

void Add(Guid id, T value, int timeout, bool restartTimer = false)

Parameters

id Guid
value T
timeout int
restartTimer bool

Get(Guid)

T Get(Guid id)

Parameters

id Guid

Returns

T

Remove(Guid)

void Remove(Guid id)

Parameters

id Guid