MCPcopy Index your code
hub / github.com/rilldata/rill / CacheKey

Method CacheKey

runtime/resolver.go:49–49  ·  view source on GitHub ↗

CacheKey returns a key that can be used for caching. It can be a large string since the value will be hashed. The key should include all the properties and args that affect the output. It does not need to include the instance ID or resolver name, as those are added separately to the cache key. If t

(ctx context.Context)

Source from the content-addressed store, hash-verified

47 //
48 // If the resolver result is not cacheable, ok is set to false.
49 CacheKey(ctx context.Context) (key []byte, ok bool, err error)
50 // Refs access by the resolver. The output may be approximate, i.e. some of the refs may not exist.
51 // The output should avoid duplicates and be stable between invocations.
52 // This is also used while resolving transitive access rules, resources retuned by Refs() will be given access.

Callers 3

ResolveMethod · 0.65
CacheKeyMethod · 0.65
ResolveInteractiveMethod · 0.65

Implementers 13

legacyMetricsResolverruntime/resolvers/legacy_metrics.go
metricsAnnotationsResolverruntime/resolvers/annotations.go
sqlResolverruntime/resolvers/sql.go
projectStorageResolverruntime/resolvers/project_storage.go
metricsSummaryResolverruntime/resolvers/metricsview_summary.
unionResolverruntime/resolvers/union.go
textResolverruntime/resolvers/text.go
resourceStatusResolverruntime/resolvers/resource_status.go
metricsResolverruntime/resolvers/metrics.go
metricsViewTimeRangeResolverruntime/resolvers/metricsview_time_ran
globResolverruntime/resolvers/glob.go
aiResolverruntime/resolvers/ai.go

Calls

no outgoing calls

Tested by

no test coverage detected