Class SimpleCache<TKey, TValue>
An implementation of IObjectCache<TKey, TValue> requiring objects to be added with an explicit key.
Implements
IObjectCache<TKey, TValue>
ICollection<TValue>
IEnumerable<TValue>
IDictionary<TKey, TValue>
ICollection<KeyValuePair<TKey, TValue>>
IEnumerable<KeyValuePair<TKey, TValue>>
Inherited Members
Namespace: Microsoft.XboxStudios.GameStateTracker.Cache
Assembly: GameStateTracker.Core.dll
Syntax
public class SimpleCache<TKey, TValue> : ObjectCacheBase<TKey, TValue>, IObjectCache<TKey, TValue>, ICollection<TValue>, IEnumerable<TValue>, IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable where TKey : IEquatable<TKey> where TValue : class
Type Parameters
| Name | Description |
|---|---|
| TKey | The info type. |
| TValue | The object type. |
Methods
View SourceGetKey(TValue)
Gets the info describing an object.
Declaration
protected override TKey GetKey(TValue input)
Parameters
| Type | Name | Description |
|---|---|---|
| TValue | input | The object. |
Returns
| Type | Description |
|---|---|
| TKey | The object info. |