{"modulePath":"github.com/grailbio/base","version":"v0.0.11","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package ctxloadingcache\n\n## Functions\n\n```go\nfunc Value(ctx context.Context, key interface{}) *loadingcache.Value\n```\nValue retrieves a \\*loadingcache.Value that's linked to a cache, if ctx was returned by With. If ctx didn't come from an earlier With call, there's no linked cache, so caching will be disabled by returning nil (which callers don't need to check, because nil is usable).\n\n```go\nfunc With(ctx context.Context, m *loadingcache.Map) context.Context\n```\nWith returns a child context which, when passed to Value, gets and sets in m. Callers now control the lifetime of the returned context's cache and can clear it.\n\n","path":"github.com/grailbio/base/sync/loadingcache/ctxloadingcache","name":"ctxloadingcache","synopsis":"","isRedistributable":true}
