語言

DistributedCachingEmbeddingGenerator<TInput,TEmbedding>.GetCacheKey 方法

定義

計算指定值的快取鍵。

protected:
 override System::String ^ GetCacheKey(ReadOnlySpan<System::Object ^> values);
protected override string GetCacheKey(scoped ReadOnlySpan<object?> values);
override this.GetCacheKey : ReadOnlySpan<obj> -> string
Protected Overrides Function GetCacheKey (values As ReadOnlySpan(Of Object)) As String

參數

values
ReadOnlySpan<Object>

這些數值用來決定鍵。

傳回

計算出的金鑰。

備註

這些資料 values 會被序列化成 JSON JsonSerializerOptions 來計算金鑰。

所產生的快取金鑰並不保證在函式庫的不同版本間穩定。

適用於