purge

Functionin simplefastly 0.13.1View source
fn purge(key: impl Into<CacheKey>) -> Result<(), CacheError>

Purge the entry associated with the given cache key.

To configure the behavior of the purge, such as to purge globally rather than within the POP, use purge_with_opts().

Note

Purged values may persist in cache for a short time (~150ms or less) after this function returns.

Argument type conversion

See the From impls for Bytes to see which types can be used as a key.

Parameters

key: impl Into<CacheKey>

Returns