FunctionsetSet a persistent session context value by key. set: func(key: string, value: list<u8>) -> result<_, session-error>;