OutputCachePolicyBuilder.SetCacheKeyPrefix メソッド

定義

オーバーロード

SetCacheKeyPrefix(Func<HttpContext,String>)

指定した値を使用してキャッシュ キーを変更するポリシーを追加します。

SetCacheKeyPrefix(Func<HttpContext,CancellationToken,ValueTask<String>>)

指定した値を使用してキャッシュ キーを変更するポリシーを追加します。

SetCacheKeyPrefix(String)

指定した値を使用してキャッシュ キーを変更するポリシーを追加します。

SetCacheKeyPrefix(Func<HttpContext,String>)

ソース:
OutputCachePolicyBuilder.cs

指定した値を使用してキャッシュ キーを変更するポリシーを追加します。

public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetCacheKeyPrefix (Func<Microsoft.AspNetCore.Http.HttpContext,string> keyPrefix);
member this.SetCacheKeyPrefix : Func<Microsoft.AspNetCore.Http.HttpContext, string> -> Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder
Public Function SetCacheKeyPrefix (keyPrefix As Func(Of HttpContext, String)) As OutputCachePolicyBuilder

パラメーター

keyPrefix
Func<HttpContext,String>

キャッシュ キーを変更する値。

戻り値

適用対象

SetCacheKeyPrefix(Func<HttpContext,CancellationToken,ValueTask<String>>)

ソース:
OutputCachePolicyBuilder.cs

指定した値を使用してキャッシュ キーを変更するポリシーを追加します。

public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetCacheKeyPrefix (Func<Microsoft.AspNetCore.Http.HttpContext,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<string>> keyPrefix);
member this.SetCacheKeyPrefix : Func<Microsoft.AspNetCore.Http.HttpContext, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<string>> -> Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder
Public Function SetCacheKeyPrefix (keyPrefix As Func(Of HttpContext, CancellationToken, ValueTask(Of String))) As OutputCachePolicyBuilder

パラメーター

keyPrefix
Func<HttpContext,CancellationToken,ValueTask<String>>

キャッシュ キーを変更する値。

戻り値

適用対象

SetCacheKeyPrefix(String)

ソース:
OutputCachePolicyBuilder.cs

指定した値を使用してキャッシュ キーを変更するポリシーを追加します。

public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetCacheKeyPrefix (string keyPrefix);
member this.SetCacheKeyPrefix : string -> Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder
Public Function SetCacheKeyPrefix (keyPrefix As String) As OutputCachePolicyBuilder

パラメーター

keyPrefix
String

キャッシュ キーを変更する値。

戻り値

適用対象