IOptionsMonitorCache<TOptions> 인터페이스

정의

IOptionsMonitor<TOptions>에서 TOptions 인스턴스를 캐시하는 데 사용됩니다.

generic <typename TOptions>
 where TOptions : classpublic interface class IOptionsMonitorCache
public interface IOptionsMonitorCache<TOptions> where TOptions : class
type IOptionsMonitorCache<'Options (requires 'Options : null)> = interface
Public Interface IOptionsMonitorCache(Of TOptions)

형식 매개 변수

TOptions

요청되는 옵션의 유형입니다.

파생

메서드

Clear()

캐시에서 모든 옵션 인스턴스를 지웁니다.

GetOrAdd(String, Func<TOptions>)

명명된 옵션 인스턴스를 가져오거나 createOptions를 사용하여 만든 새 인스턴스를 추가합니다.

TryAdd(String, TOptions)

캐시에 새 옵션을 추가하려고 시도하며, 이름이 이미 있는 경우 false를 반환합니다.

TryRemove(String)

옵션 인스턴스를 제거해 봅니다.

적용 대상