Skip to content
Commit Detail

Commit b4828ae

Author
tewaro <adityaatewari@gmail.com> 2026-03-30 16:13:14 -0500
Parents
1f30941
Tree
47cf713
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