Skip to content

Case

KeyPrefixingStrategy.custom(_:)

A custom strategy - for each key, the closure is called with that key and the prefix with which the wrapper was initialized, and must return the field key to actually use. The closure must be “pure” (i.e. for any given pair of inputs it must always return the same result, in the same way that hash values must be consistent within a single execution context).
case custom(@Sendable (FieldKey, FieldKey) -> FieldKey)