C# 클래스 Rock.Web.Cache.GlobalAttributesCache

파일 보기 프로젝트 열기: NewSpring/Rock 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CacheKey string
GetLegacyMergeFields object>.Dictionary
GetMergeFields object>.Dictionary
GetValue string
GlobalAttributesCache System
Load GlobalAttributesCache
Load2 GlobalAttributesCache
ResolveConfigValue string

공개 메소드들

메소드 설명
Flush ( ) : void

Removes Global Attributes from cache

GetOrAddExisting ( string key, Func valueFactory ) : GlobalAttributesCache

Gets the existing or a new item from cache

GetValue ( string key, RockContext rockContext = null ) : string

Gets the Global Attribute values for the specified key.

GetValueFormatted ( string key, RockContext rockContext = null ) : string

Gets the value formatted.

Read ( ) : GlobalAttributesCache

Returns Global Attributes from cache. If they are not already in cache, they will be read and added to cache

Read ( RockContext rockContext ) : GlobalAttributesCache

Reads the specified rock context.

SetValue ( string key, string value, bool saveValue ) : void

Sets the value.

SetValue ( string key, string value, bool saveValue, RockContext rockContext ) : void

Sets the value.

Value ( string key ) : string

Returns the global attribute value for the given key.

비공개 메소드들

메소드 설명
CacheKey ( ) : string
GetLegacyMergeFields ( Person currentPerson ) : object>.Dictionary

Gets the legacy global attribute values as merge fields for dotLiquid merging. Note: You should use LavaHelper.GetCommonMergeFields instead of this

GetMergeFields ( Person currentPerson ) : object>.Dictionary
GetValue ( string key, Rock.Web.Cache.AttributeCache attributeCache, RockContext rockContext ) : string
GlobalAttributesCache ( ) : System

Use Static Read() method to instantiate a new Global Attributes object

Load ( RockContext rockContext ) : GlobalAttributesCache
Load2 ( RockContext rockContext ) : GlobalAttributesCache
ResolveConfigValue ( string value, object>.Dictionary configValues, Person currentPerson ) : string

Resolves the config value.

메소드 상세

Flush() 공개 정적인 메소드

Removes Global Attributes from cache
public static Flush ( ) : void
리턴 void

GetOrAddExisting() 공개 정적인 메소드

Gets the existing or a new item from cache
public static GetOrAddExisting ( string key, Func valueFactory ) : GlobalAttributesCache
key string The key.
valueFactory Func The value factory.
리턴 GlobalAttributesCache

GetValue() 공개 메소드

Gets the Global Attribute values for the specified key.
public GetValue ( string key, RockContext rockContext = null ) : string
key string The key.
rockContext Rock.Data.RockContext The rock context.
리턴 string

GetValueFormatted() 공개 메소드

Gets the value formatted.
public GetValueFormatted ( string key, RockContext rockContext = null ) : string
key string The key.
rockContext Rock.Data.RockContext The rock context.
리턴 string

Read() 공개 정적인 메소드

Returns Global Attributes from cache. If they are not already in cache, they will be read and added to cache
public static Read ( ) : GlobalAttributesCache
리턴 GlobalAttributesCache

Read() 공개 정적인 메소드

Reads the specified rock context.
public static Read ( RockContext rockContext ) : GlobalAttributesCache
rockContext Rock.Data.RockContext The rock context.
리턴 GlobalAttributesCache

SetValue() 공개 메소드

Sets the value.
public SetValue ( string key, string value, bool saveValue ) : void
key string The key.
value string The value.
saveValue bool if set to true [save value].
리턴 void

SetValue() 공개 메소드

Sets the value.
public SetValue ( string key, string value, bool saveValue, RockContext rockContext ) : void
key string The key.
value string The value.
saveValue bool if set to true [save value].
rockContext Rock.Data.RockContext The rock context.
리턴 void

Value() 공개 정적인 메소드

Returns the global attribute value for the given key.
public static Value ( string key ) : string
key string
리턴 string