Show / Hide Table of Contents

Class SimpleCache<T>

An implementation of IObjectCache<TKey, TValue> using objects as their own key.

Inheritance
object
ObjectCacheBase<T, T>
SimpleCache<T>
Implements
IObjectCache<T, T>
ICollection<T>
IEnumerable<T>
IDictionary<T, T>
ICollection<KeyValuePair<T, T>>
IEnumerable<KeyValuePair<T, T>>
IEnumerable
Inherited Members
ObjectCacheBase<T, T>.Count
ObjectCacheBase<T, T>.IsReadOnly
ObjectCacheBase<T, T>.Keys
ObjectCacheBase<T, T>.Values
ObjectCacheBase<T, T>.Ages
ObjectCacheBase<T, T>.Objects
ObjectCacheBase<T, T>.this[T]
ObjectCacheBase<T, T>.GetObjectAge(T)
ObjectCacheBase<T, T>.GetObjectAge(T, DateTime)
ObjectCacheBase<T, T>.RefreshObject(T)
ObjectCacheBase<T, T>.RefreshObject(T, DateTime)
ObjectCacheBase<T, T>.Clear()
ObjectCacheBase<T, T>.Contains(T)
ObjectCacheBase<T, T>.ContainsKey(T)
ObjectCacheBase<T, T>.CopyTo(T[], int)
ObjectCacheBase<T, T>.Remove(T)
ObjectCacheBase<T, T>.GetEnumerator()
ObjectCacheBase<T, T>.Add(T)
ObjectCacheBase<T, T>.Add(T, T)
ObjectCacheBase<T, T>.Add(KeyValuePair<T, T>)
ObjectCacheBase<T, T>.TryGetValue(T, out T)
ObjectCacheBase<T, T>.Contains(KeyValuePair<T, T>)
ObjectCacheBase<T, T>.CopyTo(KeyValuePair<T, T>[], int)
ObjectCacheBase<T, T>.Remove(KeyValuePair<T, T>)
ObjectCacheBase<T, T>.GetKey(T)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.GameStateTracker.Cache
Assembly: GameStateTracker.Core.dll
Syntax
public class SimpleCache<T> : ObjectCacheBase<T, T>, IObjectCache<T, T>, ICollection<T>, IEnumerable<T>, IDictionary<T, T>, ICollection<KeyValuePair<T, T>>, IEnumerable<KeyValuePair<T, T>>, IEnumerable where T : class, IEquatable<T>
Type Parameters
Name Description
T

The object type.

Methods

View Source

GetKey(T)

Gets the info describing an object.

Declaration
protected override T GetKey(T input)
Parameters
Type Name Description
T input

The object.

Returns
Type Description
T

The object info.

Overrides
ObjectCacheBase<T, T>.GetKey(T)

Implements

IObjectCache<TKey, TValue>
ICollection<T>
IEnumerable<T>
IDictionary<TKey, TValue>
ICollection<T>
IEnumerable<T>
IEnumerable
  • View Source
In this article
Back to top Generated by DocFX