WithPolicyCache returns a new context with the provided PolicyCache added.
(ctx context.Context, cache *PolicyCache)
| 90 | |
| 91 | // WithPolicyCache returns a new context with the provided PolicyCache added. |
| 92 | func WithPolicyCache(ctx context.Context, cache *PolicyCache) context.Context { |
| 93 | return context.WithValue(ctx, policyCacheKey, cache) |
| 94 | } |
no outgoing calls