identity
identity
#
A recipe function's cache identity: an explicit version ("name/1") or a body digest.
function_identity(func, identity)
#
The cache identity for func.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
func
|
Callable[..., object]
|
The decorated function. |
required |
identity
|
str | None
|
An explicit versioned identity ( |
required |
Returns:
| Type | Description |
|---|---|
str
|
The identity string keyed into every cache entry for this function. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If an explicit |