setItem(_:value:)

Sets an item to a key and throws an error if it fails.

Declaration

func setItem(
    _ key: (
        any Parsable
    )...,
    value: Object?
) throws

Parameters

  • key: A key, which becomes a tuple if multiple values are passed.

  • value: The new value of the key. If nil, the item is deleted.