.NET API
ResponseCacheSettings
Tracon.Abstractions.dllResponse caching settings for a ModelBinding.
public sealed record ResponseCacheSettings : IEquatable<ResponseCacheSettings>Inheritance
Section titled “Inheritance”object ← ResponseCacheSettings
Implements
Section titled “Implements”IEquatable<ResponseCacheSettings>
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”Disabled by default: with no cache configured, today’s behavior is preserved exactly — every call reaches the model, and no cache ring is added to the pipeline.
The cache key is tenant-, provider- and tool-set-aware; it is not the raw
key Microsoft.Extensions.AI.DistributedCachingChatClient computes on
its own. Two agents with a different AgentDefinition.ToolNames
never share a cached response.
Constructors
Section titled “Constructors”ResponseCacheSettings()
Section titled “ ResponseCacheSettings()”public ResponseCacheSettings()Properties
Section titled “Properties”Enabled
Section titled “ Enabled”Gets whether the cache ring is added to the pipeline.
public bool Enabled { get; init; }Property Value
Section titled “Property Value”Lifetime
Section titled “ Lifetime”Gets how long a cached response stays valid.
public TimeSpan Lifetime { get; init; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”A model version can change under the same name, and a cache hit skips the content guard (it never reaches the model call it would inspect); this bounds both risks to a limited window instead of leaving a cached response valid forever.
Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(ResponseCacheSettings?)
Section titled “ Equals(ResponseCacheSettings?)”public bool Equals(ResponseCacheSettings? other)Parameters
Section titled “Parameters”other ResponseCacheSettings?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(ResponseCacheSettings?, ResponseCacheSettings?)
Section titled “ operator ==(ResponseCacheSettings?, ResponseCacheSettings?)”public static bool operator ==(ResponseCacheSettings? left, ResponseCacheSettings? right)Parameters
Section titled “Parameters”left ResponseCacheSettings?
right ResponseCacheSettings?
Returns
Section titled “Returns”operator !=(ResponseCacheSettings?, ResponseCacheSettings?)
Section titled “ operator !=(ResponseCacheSettings?, ResponseCacheSettings?)”public static bool operator !=(ResponseCacheSettings? left, ResponseCacheSettings? right)Parameters
Section titled “Parameters”left ResponseCacheSettings?
right ResponseCacheSettings?