Table of Contents

Interface IAutoIndexCache

Namespace
AutoIndexCache
Assembly
AutoIndexCache.dll

Represents a thread-safe cache that automatically indexes cached items.

public interface IAutoIndexCache

Methods

Items<TItem>()

Gets the list of cached items of the type TItem from this cache.

IItemsList<TItem> Items<TItem>() where TItem : class

Returns

IItemsList<TItem>

An instance of IItemsList<TItem> that allows to access the cached items of the type TItem.

Type Parameters

TItem

The type of cache items to get.

Examples

var cache = new AutoIndexCache();
cache.Items<User>().Fill(this.LoadUsers());
var users = cache.Items<User>().GetAllItems();