Table of Contents

Class ObjectCache

Namespace
Shift.Common
Assembly
Shift.Common.dll
public class ObjectCache : MemoryCache<string, object>, IDisposable, IMemoryCache<string, object>
Inheritance
ObjectCache
Implements
Inherited Members
Extension Methods

Remarks

The non-generic Cache class instantiates a Cache{object} that can be used with any type of (mixed) content. It also publishes a static .Global member, so a cache can be used without creating a dedicated instance. The .Global member is lazy-instantiated.

Constructors

ObjectCache()

public ObjectCache()

Properties

Global

Gets the global shared cache instance valid for the entire process.

public static ObjectCache Global { get; }

Property Value

ObjectCache