C# 클래스 EFBootstrap.Caching.CacheManager

Encapsulates methods that allow the caching and retrieval of objects.
파일 보기 프로젝트 열기: JimBobSquarePants/EFBootstrap

공개 메소드들

메소드 설명
AddItem ( string key, object value, System.Runtime.Caching.CacheItemPolicy policy = null, string regionName = null ) : bool

Adds an item to the cache.

Clear ( string regionName = null ) : bool

Clears the cache.

GetItem ( string key, string regionName = null ) : object

Fetches an item matching the given key from the cache.

RemoveItem ( string key, string regionName = null ) : bool

Removes an item matching the given key from the cache.

UpdateItem ( string key, object value, System.Runtime.Caching.CacheItemPolicy policy = null, string regionName = null ) : bool

Updates an item to the cache.

메소드 상세

AddItem() 공개 정적인 메소드

Adds an item to the cache.
public static AddItem ( string key, object value, System.Runtime.Caching.CacheItemPolicy policy = null, string regionName = null ) : bool
key string /// A unique identifier for the cache entry. ///
value object /// The object to insert. ///
policy System.Runtime.Caching.CacheItemPolicy /// Optional. An object that contains eviction details for the cache entry. This object /// provides more options for eviction than a simple absolute expiration. The default value for the optional parameter /// is null. ///
regionName string /// Optional. A named region in the cache to which the cache entry can be added, /// if regions are implemented. The default value for the optional parameter /// is null. ///
리턴 bool

Clear() 공개 정적인 메소드

Clears the cache.
public static Clear ( string regionName = null ) : bool
regionName string /// The region name. ///
리턴 bool

GetItem() 공개 정적인 메소드

Fetches an item matching the given key from the cache.
public static GetItem ( string key, string regionName = null ) : object
key string /// A unique identifier for the cache entry. ///
regionName string /// Optional. A named region in the cache to which the cache entry can be added, /// if regions are implemented. The default value for the optional parameter /// is null. ///
리턴 object

RemoveItem() 공개 정적인 메소드

Removes an item matching the given key from the cache.
public static RemoveItem ( string key, string regionName = null ) : bool
key string /// A unique identifier for the cache entry. ///
regionName string /// Optional. A named region in the cache to which the cache entry can be added, /// if regions are implemented. The default value for the optional parameter /// is null. ///
리턴 bool

UpdateItem() 공개 정적인 메소드

Updates an item to the cache.
public static UpdateItem ( string key, object value, System.Runtime.Caching.CacheItemPolicy policy = null, string regionName = null ) : bool
key string /// A unique identifier for the cache entry. ///
value object /// The object to insert. ///
policy System.Runtime.Caching.CacheItemPolicy /// Optional. An object that contains eviction details for the cache entry. This object /// provides more options for eviction than a simple absolute expiration. The default value for the optional parameter /// is null. ///
regionName string /// Optional. A named region in the cache to which the cache entry can be added, /// if regions are implemented. The default value for the optional parameter /// is null. ///
리턴 bool