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

Function GetKey

cache/client/handler.go:96–98  ·  view source on GitHub ↗

GetKey returns the entry key for the current page.

(ctx *context.Context)

Source from the content-addressed store, hash-verified

94
95// GetKey returns the entry key for the current page.
96func GetKey(ctx *context.Context) string {
97 return ctx.Values().GetString(entryKeyContextKey)
98}
99
100func getOrSetKey(ctx *context.Context) string {
101 if key := GetKey(ctx); key != "" {

Callers 1

getOrSetKeyFunction · 0.85

Calls 2

GetStringMethod · 0.45
ValuesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…