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

Function storeVaryManifest

middleware/cache/vary.go:88–94  ·  view source on GitHub ↗
(ctx context.Context, manager *manager, manifestKey string, names []string, exp time.Duration)

Source from the content-addressed store, hash-verified

86}
87
88func storeVaryManifest(ctx context.Context, manager *manager, manifestKey string, names []string, exp time.Duration) error {
89 if len(names) == 0 {
90 return nil
91 }
92 data := strings.Join(names, ",")
93 return manager.setRaw(ctx, manifestKey, utils.UnsafeBytes(data), exp)
94}
95
96//nolint:gocritic // returning explicit values keeps the signature concise while avoiding unnecessary named results
97func loadVaryManifest(ctx context.Context, manager *manager, manifestKey string) ([]string, bool, error) {

Callers 3

NewFunction · 0.85
Test_Cache_VaryAndAuthFunction · 0.85

Calls 1

setRawMethod · 0.45

Tested by 2

Test_Cache_VaryAndAuthFunction · 0.68