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

Method SetWithContext

middleware/cache/cache_test.go:225–228  ·  view source on GitHub ↗
(ctx context.Context, key string, val []byte, exp time.Duration)

Source from the content-addressed store, hash-verified

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))
227 return s.failingCacheStorage.SetWithContext(ctx, key, val, exp)
228}
229
230func (s *contextRecorderStorage) DeleteWithContext(ctx context.Context, key string) error {
231 s.deletes = append(s.deletes, contextRecordFrom(ctx, key))

Callers

nothing calls this directly

Calls 2

contextRecordFromFunction · 0.70
SetWithContextMethod · 0.65

Tested by

no test coverage detected