pub fn purge(key: impl Into<CacheKey>) -> Result<(), CacheError>
Expand description
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.