Functionin simplecompute-sdk-go v1.11.0View source
func Purge(key []byte, opts PurgeOptions) error

Purge removes the entry associated with the given cache key, if one exists.

The scope of the purge can be controlled with the PurgeOptions.

Purges are handled asynchronously, and the cached object may persist in cache for a short time (~150ms or less) after this function returns.

Parameters

key: []byte
opts: PurgeOptions

Returns

error