Skip to main content

derive_key

Function derive_key 

Source
pub fn derive_key(scope: Scope<'_>, inputs: Inputs<'_>) -> String
Expand description

Derive the lowercase-hex SHA-256 cache key for one ASK call.

The key is a function of identity scope + request-shape inputs. It does NOT include the TTL — two calls with the same identity and shape collide on the same entry regardless of how long that entry will live, which is the correct hit/miss semantic.