DistributedCachingEmbeddingGenerator<TInput,TEmbedding>.GetCacheKey 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
計算指定值的快取鍵。
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 來計算金鑰。
所產生的快取金鑰並不保證在函式庫的不同版本間穩定。