MCPcopy
hub / github.com/dosco/graphjin / Set

Method Set

core/cache.go:21–21  ·  view source on GitHub ↗

Set stores a response with dependency refs for invalidation. refs may represent DB rows/tables, filesystem keys/prefixes, or resolver outputs. queryStartTime is used for race condition detection.

(ctx context.Context, key string, data []byte, refs []RowRef, queryStartTime time.Time)

Source from the content-addressed store, hash-verified

19 // refs may represent DB rows/tables, filesystem keys/prefixes, or resolver outputs.
20 // queryStartTime is used for race condition detection.
21 Set(ctx context.Context, key string, data []byte, refs []RowRef, queryStartTime time.Time) error
22
23 // InvalidateRows invalidates cache entries for dependency refs.
24 InvalidateRows(ctx context.Context, refs []RowRef) error

Callers 15

ResolveMethod · 0.65
GraphQLMethod · 0.65
GraphQLByNameMethod · 0.65
fragmentCacheSetMethod · 0.65
tryCacheSetMethod · 0.65
getIntroResultMethod · 0.65
saveToAllowListMethod · 0.65
SubscribeMethod · 0.65
SubscribeByNameMethod · 0.65
TestOpenAPIBridgeResolveFunction · 0.65
TestSetPurgesCachedQueryFunction · 0.65
TestCallerRowJoinPathFunction · 0.65

Implementers 6

fakeSWRCachecore/swr_test.go
fakeOptionSWRCachecore/swr_test.go
fakeNoSWRCachecore/swr_test.go
recordingResponseCachecore/fstable_bridge_test.go
MemoryCacheserv/cache_memory.go
RedisCacheserv/cache_redis.go

Calls

no outgoing calls