Commit Detail
Commit b4828ae
Cache purge stub Creates a ctx.cache object with a purge function. This allows Cache-enabled workers to purge their own cache. We expose ctx.cache as JSG_RESOURCE_TYPE with the purge function defined on it, and the types for that function as separate classes. By default when an IoContext is not present this field is undefined. However it is designed to be overridden when embedding workerd for actual use with the provided types.
Files changed
8 files changed~8 modified