C# 클래스 Flatwhite.Provider.DefaultCacheKeyProvider

Default cache key provider
상속: ICacheKeyProvider
파일 보기 프로젝트 열기: vanthoainguyen/Flatwhite 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_hashCodeGeneratorProvider IHashCodeGeneratorProvider

공개 메소드들

메소드 설명
DefaultCacheKeyProvider ( IHashCodeGeneratorProvider hashCodeGeneratorProvider = null ) : System

Initialize a default cache key provider using IHashCodeGeneratorProvider

GetCacheKey ( _IInvocation invocation, object>.IDictionary invocationContext ) : string

Resolve cache key

GetRevalidateKey ( _IInvocation invocation, string keyFormat ) : string

Build the revalidation key from provided keyFormat

보호된 메소드들

메소드 설명
BuildWithCustom ( string prefixKey, object>.IDictionary invocationContext, string customKey, StringBuilder key ) : void

Build the key with provided customKey

BuildWithParams ( _IInvocation invocation, ParameterInfo parameters, string varyByParams, StringBuilder key ) : void

Build the key with provided varyByParams

메소드 상세

BuildWithCustom() 보호된 메소드

Build the key with provided customKey
protected BuildWithCustom ( string prefixKey, object>.IDictionary invocationContext, string customKey, StringBuilder key ) : void
prefixKey string
invocationContext object>.IDictionary
customKey string
key StringBuilder
리턴 void

BuildWithParams() 보호된 메소드

Build the key with provided varyByParams
protected BuildWithParams ( _IInvocation invocation, ParameterInfo parameters, string varyByParams, StringBuilder key ) : void
invocation _IInvocation
parameters System.Reflection.ParameterInfo
varyByParams string
key StringBuilder
리턴 void

DefaultCacheKeyProvider() 공개 메소드

Initialize a default cache key provider using IHashCodeGeneratorProvider
public DefaultCacheKeyProvider ( IHashCodeGeneratorProvider hashCodeGeneratorProvider = null ) : System
hashCodeGeneratorProvider IHashCodeGeneratorProvider
리턴 System

GetCacheKey() 공개 메소드

Resolve cache key
public GetCacheKey ( _IInvocation invocation, object>.IDictionary invocationContext ) : string
invocation _IInvocation
invocationContext object>.IDictionary
리턴 string

GetRevalidateKey() 공개 메소드

Build the revalidation key from provided keyFormat
public GetRevalidateKey ( _IInvocation invocation, string keyFormat ) : string
invocation _IInvocation
keyFormat string
리턴 string

프로퍼티 상세

_hashCodeGeneratorProvider 보호되어 있는 프로퍼티

Hashcode generator provider
protected IHashCodeGeneratorProvider _hashCodeGeneratorProvider
리턴 IHashCodeGeneratorProvider