Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
nolint
Functions ¶
func WithContext ¶
WithContext returns a copy of ctx with cache associated. If a Cache instance is already in the context, the ctx is not updated.
For instance, to make use of the cache in the context, use this notation:
ctx := r.Context() cch := cache.Ctx(ctx) val := cch.Get("some key") use val
Types ¶
Click to show internal directories.
Click to hide internal directories.