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

Method SetWithContext

storage_interface.go:22–22  ·  view source on GitHub ↗

SetWithContext stores the given value for the given key with an expiration value, 0 means no expiration. Empty key or value will be ignored without an error.

(ctx context.Context, key string, val []byte, exp time.Duration)

Source from the content-addressed store, hash-verified

20 // with an expiration value, 0 means no expiration.
21 // Empty key or value will be ignored without an error.
22 SetWithContext(ctx context.Context, key string, val []byte, exp time.Duration) error
23
24 // Set stores the given value for the given key along
25 // with an expiration value, 0 means no expiration.

Callers 15

SaveFileToStorageMethod · 0.65
SetWithContextMethod · 0.65
SetWithContextMethod · 0.65
setEncodedWithContextMethod · 0.65
setMethod · 0.65
setRawMethod · 0.65
SetWithContextMethod · 0.65
setRawMethod · 0.65
NewFunction · 0.65
SetWithContextMethod · 0.65

Implementers 15

shutdownHookStorageservices_test.go
errorStorageshared_state_test.go
contextCheckingStorageshared_state_test.go
SharedStateshared_state.go
captureStoragectx_test.go
failingStoragectx_test.go
mutatingStoragemiddleware/cache/cache_test.go
failingCacheStoragemiddleware/cache/cache_test.go
failingCSRFStoragemiddleware/csrf/csrf_test.go
flakySessionStoragemiddleware/csrf/csrf_test.go
stubStoragemiddleware/idempotency/stub_test.go

Calls

no outgoing calls

Tested by 6

SetWithContextMethod · 0.52
SetWithContextMethod · 0.52
SetWithContextMethod · 0.52
SetWithContextMethod · 0.52