MCPcopy
hub / github.com/gofiber/fiber / GetWithContext

Method GetWithContext

middleware/cache/cache_test.go:220–223  ·  middleware/cache/cache_test.go::contextRecorderStorage.GetWithContext
(ctx context.Context, key string)

Source from the content-addressed store, hash-verified

218}
219
220func (s *contextRecorderStorage) GetWithContext(ctx context.Context, key string) ([]byte, error) {
221 s.gets = append(s.gets, contextRecordFrom(ctx, key))
222 return s.failingCacheStorage.GetWithContext(ctx, key)
223}
224
225func (s *contextRecorderStorage) SetWithContext(ctx context.Context, key string, val []byte, exp time.Duration) error {
226 s.sets = append(s.sets, contextRecordFrom(ctx, key))

Callers

nothing calls this directly

Calls 2

contextRecordFromFunction · 0.70
GetWithContextMethod · 0.65

Tested by

no test coverage detected