SurrogateKeyForCacheKey
SurrogateKeyForCacheKey creates a surrogate key for the given cache key and purge scope that is compatible with the Simple Cache API. Each cache entry for the Simple Cache API is configured with surrogate keys from this function.
This function is provided as a convenience for implementors wishing to add a Simple Cache-compatible surrogate key manually via the Core Cache API (github.com/fastly/compute-sdk-go/cache/core) for interoperability with Purge.
Parameters
- cacheKey: []byte
- scope: PurgeScope
Returns
string