C# 클래스 Geta.EPi.Extensions.SingletonPage.DefaultContentReferenceCache

Default cache for singleton page content references. Uses ConcurrentDictionary.
상속: IContentReferenceCache
파일 보기 프로젝트 열기: Geta/EPi.Extensions

공개 메소드들

메소드 설명
DefaultContentReferenceCache ( ) : System

Instantiates new DefaultContentReferenceCache.

GetOrAdd ( CacheKey key, Func valueFactory ) : EPiServer.Core.ContentReference

Gets or adds a singleton page content reference to the cache when not empty.

메소드 상세

DefaultContentReferenceCache() 공개 메소드

Instantiates new DefaultContentReferenceCache.
public DefaultContentReferenceCache ( ) : System
리턴 System

GetOrAdd() 공개 메소드

Gets or adds a singleton page content reference to the cache when not empty.
public GetOrAdd ( CacheKey key, Func valueFactory ) : EPiServer.Core.ContentReference
key CacheKey Cache key as a pair of the root page content reference and singleton page type.
valueFactory Func Factory function to get singleton page content reference.
리턴 EPiServer.Core.ContentReference