Documentation
¶
Overview ¶
Package cachescope decides the cacheScope every cacheable MCP result carries under protocol revision 2026-07-28 (#2794).
Index ¶
Constants ¶
const ( // Private limits reuse of a result to the authorization // context that received it. Private = "private" // Public lets any client or intermediary serve a result across // authorization contexts: it holds nothing that depends on the caller. Public = "public" )
The cacheScope values of protocol revision 2026-07-28 (CacheableResult).
Variables ¶
This section is empty.
Functions ¶
func Of ¶
Of is the cache scope a method's result carries, "" for a method whose result is not cacheable.
func Stamp ¶
Stamp sets the cache scope a method's result carries. pkg/middleware's outermost result layer calls it, so a result a middleware built itself (a managed resource read) is decided by the same table as one the SDK's handler built. ttlMs is left as it is: no result here has a freshness bound.
Types ¶
This section is empty.