MCPcopy Create free account
hub / github.com/kataras/iris / SetKey

Function SetKey

cache/client/handler.go:91–93  ·  view source on GitHub ↗

SetKey sets a custom entry key for cached pages. See root package-level `WithKey` instead.

(ctx *context.Context, key string)

Source from the content-addressed store, hash-verified

89// SetKey sets a custom entry key for cached pages.
90// See root package-level `WithKey` instead.
91func SetKey(ctx *context.Context, key string) {
92 ctx.Values().Set(entryKeyContextKey, key)
93}
94
95// GetKey returns the entry key for the current page.
96func GetKey(ctx *context.Context) string {

Callers 2

WithKeyFunction · 0.92
getOrSetKeyFunction · 0.85

Calls 2

SetMethod · 0.65
ValuesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…