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