| 86 | } |
| 87 | |
| 88 | func 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 |
| 97 | func loadVaryManifest(ctx context.Context, manager *manager, manifestKey string) ([]string, bool, error) { |