DistributedCachingChatClientBuilderExtensions.UseDistributedCache Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Microsoft.Extensions.AI.ChatClientBuilder UseDistributedCache (this Microsoft.Extensions.AI.ChatClientBuilder builder, Microsoft.Extensions.Caching.Distributed.IDistributedCache? storage = default, Action<Microsoft.Extensions.AI.DistributedCachingChatClient>? configure = default);
static member UseDistributedCache : Microsoft.Extensions.AI.ChatClientBuilder * Microsoft.Extensions.Caching.Distributed.IDistributedCache * Action<Microsoft.Extensions.AI.DistributedCachingChatClient> -> Microsoft.Extensions.AI.ChatClientBuilder
<Extension()>
Public Function UseDistributedCache (builder As ChatClientBuilder, Optional storage As IDistributedCache = Nothing, Optional configure As Action(Of DistributedCachingChatClient) = Nothing) As ChatClientBuilder
Parameters
- builder
- ChatClientBuilder
- storage
- IDistributedCache
- configure
- Action<DistributedCachingChatClient>
Returns
Applies to
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.