Function

get-cache-generation

The current cache generation value for this Fastly service.

The cache generation value is incremented by purge-all operations.

Equivalent to the "FASTLY_CACHE_GENERATION" environment variable and to req.vcl.generation in VCL.

get-cache-generation: func() -> u64;