C# 클래스 Aspectacular.RequestCache

Caches data for the duration of the HTTP request processing. Should be used together with [InvariantReturn] attribute applied to methods and classes whose results can be cached.
No explicit cleanup/invalidation is required as cached data is dropped at the end of the request processing. This caching mechanism could be used to eliminate same queries to the database done within the scope of a single page. Please note that method unique signature involves a very slow method parameter evaluation. and therefore only methods with high likelihood of repeated calls should be cached.
상속: ICacheProvider
파일 보기 프로젝트 열기: vgribok/Aspectacular

보호된 프로퍼티들

프로퍼티 타입 설명
requestCacher RequestCache

공개 메소드들

메소드 설명
Get ( ) : RequestCache

Factory returning instance of the http request-level cache provider for caching aspect.

Set ( string key, object val ) : void
TryGet ( string key, object &val ) : bool

보호된 메소드들

메소드 설명
RequestCache ( ) : System.Web

Please use static Get() factory method instead of the constructor.

메소드 상세

Get() 공개 정적인 메소드

Factory returning instance of the http request-level cache provider for caching aspect.
public static Get ( ) : RequestCache
리턴 RequestCache

RequestCache() 보호된 메소드

Please use static Get() factory method instead of the constructor.
protected RequestCache ( ) : System.Web
리턴 System.Web

Set() 공개 메소드

public Set ( string key, object val ) : void
key string
val object
리턴 void

TryGet() 공개 메소드

public TryGet ( string key, object &val ) : bool
key string
val object
리턴 bool

프로퍼티 상세

requestCacher 보호되어 있는 정적으로 프로퍼티

No reason to instantiate destroy it - it has no state and works on the current request.
protected static RequestCache,Aspectacular requestCacher
리턴 RequestCache