purge

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2023 License: Apache-2.0, BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package purge provides cache purging operations for Fastly Compute@Edge.

See the Fastly purge documentation for details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PurgeSurrogateKey

func PurgeSurrogateKey(surrogateKey string, opts PurgeOptions) error

PurgeSurrogateKey purges all cached objects with the provided surrogate key.

Types

type PurgeOptions

type PurgeOptions struct {
	// Whether to soft purge the item.  A soft purge marks a cached
	// object as stale, rather than invalidating it.
	Soft bool
}

PurgeOptions control the behavior of purge operations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL