类 ara::per::KeyValueStorage
[SWS_PER_00339] Upstream: RS_PER_00002 , RS_AP_00122 , RS_AP_00140 , RS_AP_00146
class KeyValueStorage final {...};
The Key-Value Storage contains a set of keys with associated values.
Header-Datei #include "ara/per/key_value_storage.h" Forwarding-Header #include "ara/per/per_fwd.h" Scope namespace ara::per
用户指南人工智能生成 通过具有显式同步的事务性读写操作管理持久性键值对。
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 74f93d55aa8a
来源
未决问题(1)
摘要 详细
通过具有显式同步的事务性读写操作管理持久性键值对。
本指南由基于 AUTOSAR R25-11 的 AI 支持文档系统生成。
分组依据 类别 历史
成员图 类图 Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.
G
nara__per__KeyValueStorage981
KeyValueStorage
+ KeyValueStorage()
+ operator=()
+ ~KeyValueStorage()
+ DiscardPendingChanges()
+ GetAllKeys()
+ GetCurrentValueSize()
+ GetValue()
+ KeyExists()
+ RecoverKey()
+ RemoveAllKeys()
+ RemoveKey()
+ ResetKey()
+ SetValue()
+ SyncToStorage()
详细视图 此版本没有元素数据
构造函数和析构函数 The move constructor for KeyValueStorage shall not be used.
重载 KeyValueStorage 3 Destructor for KeyValueStorage.
方法 Removes all pending changes to this Key-Value Storage since the last call to SyncToStorage() or since this Key-Value Storage was opened using OpenKeyValueStorage(). DiscardPendingChanges may be delayed by an ongoing call from another thread to RemoveAll Keys, SyncToStorage, DiscardPendingChanges, SetValue, GetValue, GetCurrentValueSize, RemoveKey, RecoverKey, or ResetKey.
Returns a list of all currently available keys of this Key-Value Storage. The list of keys is only accurate if no key-value pair is added or deleted at the same time. This method uses transaction semantics, it sees the current state of transaction, not the actual physical storage.
Returns the size (in bytes) of the value assigned to a key of this Key-Value Storage. GetCurrentValueSize may be delayed by an ongoing call from another thread to RemoveAllKeys or DiscardPendingChanges, or to SetValue, RemoveKey, RecoverKey, or ResetKey for the same key-value pair. This method uses transaction semantics, it sees the current state of transaction, not the actual physical storage.
Returns the value assigned to a key of this KeyValueStorage. This method should only be used to access very large values repeatedly. GetValue may be delayed by an ongoing call from another thread to RemoveAllKeys or Discard PendingChanges, or to SetValue, RemoveKey, RecoverKey, or ResetKey for the same key-value pair. This method uses transaction semantics, it sees the current state of transaction, not the actual physical storage.
重载 GetValue 2 Checks if a key-value pair exists in this Key-Value Storage. The result is only accurate if no key-value pair is added or deleted at the same time. E.g. when a key-value pair is removed in another thread directly after this function returned "true", the result is not valid anymore. This method uses transaction semantics, it sees the current state of transaction, not the actual physical storage.
Recovers a single key-value pair of this Key Value Storage. This method allows to recover a single key-value pair when the redundancy checks fail. This method does a best-effort recovery of the key-value pair. After recovery, the key-value pair might contain outdated or initial content, or might be lost. RecoverKey may be delayed by an ongoing call from another thread to RemoveAllKeys, SyncTo Storage, or DiscardPendingChanges, or to SetValue, GetValue, GetCurrentValueSize, Remove Key, RecoverKey, or ResetKey for the same key-value pair.
Removes all key-value pairs and associated values from this Key-Value Storage. RemoveAllKeys may be delayed by an ongoing call from another thread to RemoveAllKeys, SyncToStorage, DiscardPendingChanges, SetValue, GetValue, GetCurrentValueSize, Remove Key, RecoverKey, or ResetKey. This method uses transaction semantics, the changes only take effect when SyncToStorage is called.
Removes a key and the associated value from this Key-Value Storage. RemoveKey may be delayed by an ongoing call from another thread to RemoveAllKeys, SyncTo Storage, or DiscardPendingChanges, or to SetValue, GetValue, GetCurrentValueSize, Remove Key, RecoverKey, or ResetKey for the same key-value pair. This method uses transaction semantics, the changes only take effect when SyncToStorage is called.
Resets a key of this Key-Value Storage to its initial value. ResetKey allows to reset a single key to its initial value. If the key is currently not available in the Key-Value Storage, it is re-created. Afterwards, the key-value pair will appear in both cases as if it was newly installed from the current Target Configuration. ResetKey will fail with kInitValueNotAvailable when neither Application Design nor Target Configuration define an initial value for the key. ResetKey may be delayed by an ongoing call from another thread to RemoveAllKeys, SyncTo Storage, or DiscardPendingChanges, or to SetValue, GetValue, GetCurrentValueSize, Remove Key, RecoverKey, or ResetKey for the same key-value pair.
Stores a key-value pair in this Key-Value Storage. If a value already exists and has the same data type as the new value, it is overwritten. If the new value has a different data type than the stored value, kDataTypeMismatch is returned. SetValue may be delayed by an ongoing call from another thread to RemoveAllKeys, SyncTo Storage, or DiscardPendingChanges, or to SetValue, GetValue, GetCurrentValueSize, Remove Key, RecoverKey, or ResetKey for the same key-value pair. This method uses transaction semantics, the changes only take effect when SyncToStorage is called.
Flushes changed key-value pairs of the Key-Value Storage to the physical storage. SyncToStorage may be delayed by an ongoing call from another thread to RemoveAllKeys, DiscardPendingChanges, SetValue, RemoveKey, RecoverKey, or ResetKey.
运算符 The move assignment operator for KeyValueStorage shall not be used.
重载 = 2
点击条目以查看其关系。
基类 派生类 使用 被使用于 继承 自此版本起移除 用于 此类中无关联 函数 AI 评注 打开类页面 无法加载类页面。 调整顺序 调整宽度 调整大纲宽度 章节 阅读时间 SWS 引用 图表 放回中间 调整顺序或拖到标题栏 取消停靠 – 在内容中显示 移到中间栏 作为标签停靠到标题栏 元素 AI 模型 打开审计档案 档案 打开简短版本 打开中等版本 打开完整版本 恢复默认视图 已恢复默认视图 撤销 关闭详细视图 签名 基本信息 值 截至所选版本的最后一次更改 之后的下一次更改 单击:选择版本 无法放在此处:拖到标题栏可停靠,拖到中间栏可取消停靠。 新增 已更改 未更改 已移除 未包含 更改 内容无变化 首次出现于 移除于 没有可用的版本数据。 正在加载版本数据 … 文本 此版本未收录措辞 悬停或单击单元格:与所选版本比较 · 单击版本标题:选择版本 选择版本 属性 版本 元素 只有一个版本有措辞 PDF 中存在,原文尚未导入 首次采集原文 自 {rel} 起未更改 版本颜色 最早版本 最新版本
方法文档
ara::core::Result < void > DiscardPendingChanges () noexcept;
Removes all pending changes to this Key-Value Storage since the last call to SyncToStorage() or since this Key-Value Storage was opened using OpenKeyValueStorage(). DiscardPendingChanges may be delayed by an ongoing call from another thread to RemoveAll Keys, SyncToStorage, DiscardPendingChanges, SetValue, GetValue, GetCurrentValueSize, RemoveKey, RecoverKey, or ResetKey.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 73a36630080a
来源
用法与语义
类 ara::per::KeyValueStorage([SWS_PER_00365] )的同步成员函数 DiscardPendingChanges 由头文件 ara/per/key_value_storage.h 提供。它不接受任何参数并返回一个 ara::core::Result<void>。其目的是放弃自上次调用 SyncToStorage 或自通过 OpenKeyValueStorage() 打开以来在键值存储实例上产生的所有待处理更改 [SWS_PER_00365] 。
交互与事务行为
写入操作(如 SetValue [SWS_PER_00046] 、RemoveKey [SWS_PER_00047] 和 RemoveAllKeys [SWS_PER_00048] )遵循事务语义。它们的更改只有在调用 SyncToStorage 后才会持久写入物理存储介质 [SWS_PER_00049] 。通过 DiscardPendingChanges,这些未保存的修改将被回滚,从而通过 GetCurrentValueSize 进行的查询也会再次反映先前的事务初始状态 [SWS_PER_00554] 。
错误处理与并发
在发生错误时,结果包含特定于制造商的错误或来自 PerErrc 且具有定义回滚语义的错误代码 [SWS_PER_00365] :
PerErrc::kIllegalWriteAccess:当存储为只读,或者在 Write-Only-Once 配置下键已存在时。
PerErrc::kPhysicalStorageFailure:当访问物理存储介质失败时。
PerErrc::kIntegrityCorrupted、PerErrc::kValidationFailed、PerErrc::kEncryptionFailed 或 PerErrc::kAuthenticationFailed:在完整性损失、验证错误、解密错误或 MAC 校验失败时。
该方法被声明为 noexcept、异常安全(exception safe)以及线程安全(thread-safe)[SWS_PER_00365] 。然而,如果其他线程中并行活动着对 SyncToStorage、SetValue、RemoveKey、RemoveAllKeys、ResetKey 或 RecoverKey 的调用,则执行可能会延迟 [SWS_PER_00365] [SWS_PER_00426] [SWS_PER_00427] 。
本段文本由人工智能生成,并根据 AUTOSAR 规范进行了整理。
实现者指南即将推出(复杂度 I2)
Header-Datei #include "ara/per/key_value_storage.h" Scope class ara::per::KeyValueStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe
Rückgabewert
Typ Beschreibung ara::core::Result < void >A Result of void. In case of an error, it contains any of the errors defined below, or a vendor specific error.
Fehler
Fehlercode Beschreibung PerErrc ::kIllegalWriteAccessrollback_semantics Returned if the Key-Value Storage is configured as read- only, or if it is configured as write-only-once and the key already exists. PerErrc ::kPhysicalStorageFailurerollback_semantics Returned if access to the physical storage fails. PerErrc ::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be read because the structural integrity is corrupted. PerErrc ::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured. PerErrc ::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails. PerErrc ::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.
Status: valid/unmigrated
Version: rel:R25-11#f3496212
Versionshistorie & Revisions (1 transition, 8 revision)
Current State valid/unmigrated
Reason mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign 2026-08-13-status-backfill
Active Version AUTOSAR/AP/record/SWS_PER_00365@rel:R25-11#f3496212
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#0793e9a52026-09-30 Inspect R19-11 rel:R19-11#90dcd0d22026-10-14 Inspect R20-11 rel:R20-11#306302ca2026-10-14 Inspect R21-11 rel:R21-11#5bb9ceb52026-10-14 Inspect R22-11 rel:R22-11#6374aaa62026-10-14 Inspect R23-11 rel:R23-11#7a4bc2902026-10-14 Inspect R24-11 rel:R24-11#fd18fb832026-10-14 Inspect R25-11 rel:R25-11#f34962122026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
ara::core::Result < ara::core::Vector < ara::core::String > > GetAllKeys () const noexcept;
Returns a list of all currently available keys of this Key-Value Storage. The list of keys is only accurate if no key-value pair is added or deleted at the same time. This method uses transaction semantics, it sees the current state of transaction, not the actual physical storage.
Header-Datei #include "ara/per/key_value_storage.h" Scope class ara::per::KeyValueStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe PerErrc ::kPhysical rollback_semantics
Rückgabewert
Fehler
Fehlercode Beschreibung StorageFailure Returned if access to the physical storage fails. PerErrc ::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be read because the structural integrity is corrupted. PerErrc ::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured. PerErrc ::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails. PerErrc ::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.
Status: valid/unmigrated
Version: rel:R25-11#7764796d
Versionshistorie & Revisions (1 transition, 8 revision)
Current State valid/unmigrated
Reason mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign 2026-08-13-status-backfill
Active Version AUTOSAR/AP/record/SWS_PER_00042@rel:R25-11#7764796d
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#b9c10dc72026-09-30 Inspect R19-11 rel:R19-11#dc305f7c2026-10-14 Inspect R20-11 rel:R20-11#5ed793b42026-10-14 Inspect R21-11 rel:R21-11#d356f6902026-10-14 Inspect R22-11 rel:R22-11#ef6f96bc2026-10-14 Inspect R23-11 rel:R23-11#13f7a5a82026-10-14 Inspect R24-11 rel:R24-11#84dcd6932026-10-14 Inspect R25-11 rel:R25-11#7764796d2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
ara::core::Result < std::uint64_t > GetCurrentValueSize (ara::core::StringView key) const noexcept;
Returns the size (in bytes) of the value assigned to a key of this Key-Value Storage. GetCurrentValueSize may be delayed by an ongoing call from another thread to RemoveAllKeys or DiscardPendingChanges, or to SetValue, RemoveKey, RecoverKey, or ResetKey for the same key-value pair. This method uses transaction semantics, it sees the current state of transaction, not the actual physical storage.
Header-Datei #include "ara/per/key_value_storage.h" Scope class ara::per::KeyValueStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe PerErrc ::kKeyNotFound rollback_semantics
Parameter (in)
Parameter Beschreibung key The key to look up.
Rückgabewert
Typ Beschreibung ara::core::Result <std::uint64_t >A Result containing the size of the value in bytes. In case of an error, it contains any of the errors defined below, or a vendor specific error.
Fehler
Fehlercode Beschreibung Returned if the provided key does not exist in the Key-Value Storage. PerErrc ::kPhysicalStorageFailurerollback_semantics Returned if access to the physical storage fails. PerErrc ::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be read because the structural integrity is corrupted. PerErrc ::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured. PerErrc ::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails. PerErrc ::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.
Status: valid/unmigrated
Version: rel:R25-11#24655af4
Versionshistorie & Revisions (1 transition, 5 revision)
Current State valid/unmigrated
Reason mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign 2026-08-13-status-backfill
Active Version AUTOSAR/AP/record/SWS_PER_00554@rel:R25-11#24655af4
Point-in-Time History:
Release:
R25-11 (Current / Active) R22-11 R23-11 R24-11 R20-11 R19-11
View Snapshot
Recorded Revisions (5):
R25-11 rel:R25-11#83415bd32026-09-30 Inspect R22-11 rel:R22-11#929002202026-10-14 Inspect R23-11 rel:R23-11#de5e8c192026-10-14 Inspect R24-11 rel:R24-11#031b61af2026-10-14 Inspect R25-11 rel:R25-11#24655af42026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
template <class T> ara::core::Result < void > GetValue (ara::core::StringView key, T &value) const noexcept;
Returns the value assigned to a key of this KeyValueStorage. This method should only be used to access very large values repeatedly. GetValue may be delayed by an ongoing call from another thread to RemoveAllKeys or Discard PendingChanges, or to SetValue, RemoveKey, RecoverKey, or ResetKey for the same key-value pair. This method uses transaction semantics, it sees the current state of transaction, not the actual physical storage.
Header-Datei #include "ara/per/key_value_storage.h" Scope class ara::per::KeyValueStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe PerErrc ::kKeyNotFound rollback_semantics
Template-Parameter
Parameter Beschreibung T The type of the value that shall be retrieved.
Parameter (in)
Parameter Beschreibung key The key to look up.
Parameter (out)
Parameter Beschreibung value The retrieved value.
Rückgabewert
Typ Beschreibung ara::core::Result < void >A Result of void. In case of an error, it contains any of the errors defined below, or a vendor specific error.
Fehler
Fehlercode Beschreibung Returned if the provided key does not exist in the Key-Value Storage. PerErrc ::kPhysicalStorageFailurerollback_semantics Returned if access to the physical storage fails. PerErrc ::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be read because the structural integrity is corrupted. PerErrc ::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured. PerErrc ::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails. PerErrc ::kDataTypeMismatchrollback_semantics Returned if the data type of stored value does not match the templated type. PerErrc ::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.
Status: valid/unmigrated
Version: rel:R25-11#d1fc24ca
Versionshistorie & Revisions (1 transition, 5 revision)
Current State valid/unmigrated
Reason mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign 2026-08-13-status-backfill
Active Version AUTOSAR/AP/record/SWS_PER_00044@rel:R25-11#d1fc24ca
Point-in-Time History:
Release:
R25-11 (Current / Active) R22-11 R23-11 R24-11 R20-11 R19-11
View Snapshot
Recorded Revisions (5):
R25-11 rel:R25-11#51af7b752026-09-30 Inspect R22-11 rel:R22-11#aba3314c2026-10-14 Inspect R23-11 rel:R23-11#5ce84da62026-10-14 Inspect R24-11 rel:R24-11#e55139fe2026-10-14 Inspect R25-11 rel:R25-11#d1fc24ca2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
template <class T> ara::core::Result < T > GetValue (ara::core::StringView key) const noexcept;
Returns the value assigned to a key of this Key-Value Storage. GetValue may be delayed by an ongoing call from another thread to RemoveAllKeys or Discard PendingChanges, or to SetValue, RemoveKey, RecoverKey, or ResetKey for the same key-value pair. This method uses transaction semantics, it sees the current state of transaction, not the actual physical storage.
Header-Datei #include "ara/per/key_value_storage.h" Scope class ara::per::KeyValueStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe PerErrc ::kKeyNotFound rollback_semantics
Template-Parameter
Parameter Beschreibung T The type of the value that shall be retrieved.
Parameter (in)
Parameter Beschreibung key The key to look up.
Rückgabewert
Typ Beschreibung ara::core::Result < T >A Result containing the retrieved value. In case of an error, it contains any of the errors defined below, or a vendor specific error.
Fehler
Fehlercode Beschreibung Returned if the provided key does not exist in the Key-Value Storage. PerErrc ::kPhysicalStorageFailurerollback_semantics Returned if access to the physical storage fails. PerErrc ::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be read because the structural integrity is corrupted. PerErrc ::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured. PerErrc ::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails. PerErrc ::kDataTypeMismatchrollback_semantics Returned if the data type of stored value does not match the templated type. PerErrc ::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.
Status: valid/unmigrated
Version: rel:R25-11#dcb7cd2f
Versionshistorie & Revisions (1 transition, 8 revision)
Current State valid/unmigrated
Reason mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign 2026-08-13-status-backfill
Active Version AUTOSAR/AP/record/SWS_PER_00332@rel:R25-11#dcb7cd2f
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#f6c15de42026-09-30 Inspect R19-11 rel:R19-11#e0b2cbd72026-10-14 Inspect R20-11 rel:R20-11#817780202026-10-14 Inspect R21-11 rel:R21-11#efed588e2026-10-14 Inspect R22-11 rel:R22-11#cb63ddd02026-10-14 Inspect R23-11 rel:R23-11#03fe0a512026-10-14 Inspect R24-11 rel:R24-11#e6d6eef02026-10-14 Inspect R25-11 rel:R25-11#dcb7cd2f2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
ara::core::Result < bool > KeyExists (ara::core::StringView key) const noexcept;
Checks if a key-value pair exists in this Key-Value Storage. The result is only accurate if no key-value pair is added or deleted at the same time. E.g. when a key-value pair is removed in another thread directly after this function returned "true", the result is not valid anymore. This method uses transaction semantics, it sees the current state of transaction, not the actual physical storage.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: d5f804c0cf2d
来源
此文本由 AI 生成,并基于 AUTOSAR R25-11 规范。
实现者指南即将推出(复杂度 I1)
Header-Datei #include "ara/per/key_value_storage.h" Scope class ara::per::KeyValueStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe PerErrc ::kPhysical rollback_semantics
Parameter (in)
Parameter Beschreibung key The key that shall be checked.
Rückgabewert
Typ Beschreibung ara::core::Result < bool >A Result containing true if the key could be located or false if it couldn’t. In case of an error, it contains any of the errors defined below, or a vendor specific error.
Fehler
Fehlercode Beschreibung StorageFailure Returned if access to the physical storage fails. PerErrc ::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be read because the structural integrity is corrupted. PerErrc ::kValidationFailedrollback_semantics Returned if the validity of stored data cannot be ensured. PerErrc ::kEncryptionFailedrollback_semantics Returned if the decryption of stored data fails. PerErrc ::kAuthenticationFailedrollback_semantics Returned if checking the MAC of stored data fails.
Status: valid/unmigrated
Version: rel:R25-11#e65b8880
Versionshistorie & Revisions (1 transition, 8 revision)
Current State valid/unmigrated
Reason mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign 2026-08-13-status-backfill
Active Version AUTOSAR/AP/record/SWS_PER_00043@rel:R25-11#e65b8880
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#e8b3c8032026-09-30 Inspect R19-11 rel:R19-11#acb4571e2026-10-14 Inspect R20-11 rel:R20-11#508cbca52026-10-14 Inspect R21-11 rel:R21-11#198de15f2026-10-14 Inspect R22-11 rel:R22-11#4b0b474d2026-10-14 Inspect R23-11 rel:R23-11#b85446a12026-10-14 Inspect R24-11 rel:R24-11#416f86462026-10-14 Inspect R25-11 rel:R25-11#e65b88802026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
KeyValueStorage (KeyValueStorage &&kvs)=delete;
The move constructor for KeyValueStorage shall not be used.
Status: valid/unmigrated
Version: rel:R25-11#225c60f1
Versionshistorie & Revisions (1 transition, 8 revision)
Current State valid/unmigrated
Reason mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign 2026-08-13-status-backfill
Active Version AUTOSAR/AP/record/SWS_PER_00322@rel:R25-11#225c60f1
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#98b7adb12026-09-30 Inspect R19-11 rel:R19-11#061b66e82026-10-14 Inspect R20-11 rel:R20-11#61caa7ac2026-10-14 Inspect R21-11 rel:R21-11#0d2d108a2026-10-14 Inspect R22-11 rel:R22-11#2127e47e2026-10-14 Inspect R23-11 rel:R23-11#1e46b07b2026-10-14 Inspect R24-11 rel:R24-11#225c60f12026-10-14 Inspect R25-11 rel:R25-11#225c60f12026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
KeyValueStorage (const KeyValueStorage &)=delete;
The copy constructor for KeyValueStorage shall not be used.
Status: valid/unmigrated
Version: rel:R25-11#3458c64f
Versionshistorie & Revisions (1 transition, 8 revision)
Current State valid/unmigrated
Reason mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign 2026-08-13-status-backfill
Active Version AUTOSAR/AP/record/SWS_PER_00324@rel:R25-11#3458c64f
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#b723be562026-09-30 Inspect R19-11 rel:R19-11#9cddb3192026-10-14 Inspect R20-11 rel:R20-11#eab3f9102026-10-14 Inspect R21-11 rel:R21-11#eab3f9102026-10-14 Inspect R22-11 rel:R22-11#b9dc355d2026-10-14 Inspect R23-11 rel:R23-11#64874c0d2026-10-14 Inspect R24-11 rel:R24-11#3458c64f2026-10-14 Inspect R25-11 rel:R25-11#3458c64f2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
KeyValueStorage ()=delete;
The default constructor for KeyValueStorage shall not be used.
Status: valid/unmigrated
Version: rel:R25-11#2cda50df
Versionshistorie & Revisions (1 transition, 6 revision)
Current State valid/unmigrated
Reason mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign 2026-08-13-status-backfill
Active Version AUTOSAR/AP/record/SWS_PER_00459@rel:R25-11#2cda50df
Point-in-Time History:
Release:
R25-11 (Current / Active) R21-11 R22-11 R23-11 R24-11 R20-11 R19-11
View Snapshot
Recorded Revisions (6):
R25-11 rel:R25-11#757585242026-09-30 Inspect R21-11 rel:R21-11#74095de92026-10-14 Inspect R22-11 rel:R22-11#db0f4fa82026-10-14 Inspect R23-11 rel:R23-11#4c09eb602026-10-14 Inspect R24-11 rel:R24-11#2cda50df2026-10-14 Inspect R25-11 rel:R25-11#2cda50df2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
ara::core::Result < void > RecoverKey (ara::core::StringView key) noexcept;
Recovers a single key-value pair of this Key Value Storage. This method allows to recover a single key-value pair when the redundancy checks fail. This method does a best-effort recovery of the key-value pair. After recovery, the key-value pair might contain outdated or initial content, or might be lost. RecoverKey may be delayed by an ongoing call from another thread to RemoveAllKeys, SyncTo Storage, or DiscardPendingChanges, or to SetValue, GetValue, GetCurrentValueSize, Remove Key, RecoverKey, or ResetKey for the same key-value pair.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 424fba0f9a95
来源
本使用说明基于规范自动生成。
实现者指南即将推出(复杂度 I2)
Header-Datei #include "ara/per/key_value_storage.h" Scope class ara::per::KeyValueStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe PerErrc ::kKeyNotFound rollback_semantics
Parameter (in)
Parameter Beschreibung key The key to be recovered.
Rückgabewert
Typ Beschreibung ara::core::Result < void >A Result of void. In case of an error, it contains any of the errors defined below, or a vendor specific error.
Fehler
Fehlercode Beschreibung Returned if the provided key does not exist in the Key-Value Storage. PerErrc ::kIllegalWriteAccessrollback_semantics Returned if the Key-Value Storage is configured as read- only. PerErrc ::kPhysicalStorageFailureno_rollback_semantics Returned if access to the physical storage fails. PerErrc ::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be written because the structural integrity is corrupted. PerErrc ::kEncryptionFailedrollback_semantics Returned if the encryption or decryption of stored data fails. PerErrc ::kOutOfStorageSpaceno_rollback_semantics Returned if the available physical storage space is insufficient for the recovered value. PerErrc ::kQuotaExceededrollback_semantics Returned if the recovered value would exceed the configured maximumAllowedSize of the Key-Value Storage. PerErrc ::kAuthenticationFailedrollback_semantics Returned if calculating or checking the MAC of stored data fails.
Status: valid/unmigrated
Version: rel:R25-11#aaccab12
Versionshistorie & Revisions (1 transition, 7 revision)
Current State valid/unmigrated
Reason mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign 2026-08-13-status-backfill
Active Version AUTOSAR/AP/record/SWS_PER_00427@rel:R25-11#aaccab12
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#1ff272ae2026-09-30 Inspect R20-11 rel:R20-11#2a43812a2026-10-14 Inspect R21-11 rel:R21-11#d955febb2026-10-14 Inspect R22-11 rel:R22-11#e216dd632026-10-14 Inspect R23-11 rel:R23-11#9839d1302026-10-14 Inspect R24-11 rel:R24-11#4dc9fbc22026-10-14 Inspect R25-11 rel:R25-11#aaccab122026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
ara::core::Result < void > RemoveAllKeys () noexcept;
Removes all key-value pairs and associated values from this Key-Value Storage. RemoveAllKeys may be delayed by an ongoing call from another thread to RemoveAllKeys, SyncToStorage, DiscardPendingChanges, SetValue, GetValue, GetCurrentValueSize, Remove Key, RecoverKey, or ResetKey. This method uses transaction semantics, the changes only take effect when SyncToStorage is called.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 0ae35af4fc43
来源
未决问题(1)
本段文本由 AI 基于规范要求生成。
实现者指南即将推出(复杂度 I2)
Header-Datei #include "ara/per/key_value_storage.h" Scope class ara::per::KeyValueStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe PerErrc ::kIllegalWrite rollback_semantics
Rückgabewert
Typ Beschreibung ara::core::Result < void >A Result of void. In case of an error, it contains any of the errors defined below, or a vendor specific error.
Fehler
Fehlercode Beschreibung Access Returned if the Key-Value Storage is configured as read- only. PerErrc ::kPhysicalStorageFailurerollback_semantics Returned if access to the physical storage fails. PerErrc ::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be written because the structural integrity is corrupted. PerErrc ::kEncryptionFailedrollback_semantics Returned if the encryption or decryption of stored data fails. PerErrc ::kAuthenticationFailedrollback_semantics Returned if calculating or checking the MAC of stored data fails.
Status: valid/unmigrated
Version: rel:R25-11#098d4bc1
Versionshistorie & Revisions (1 transition, 8 revision)
Current State valid/unmigrated
Reason mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign 2026-08-13-status-backfill
Active Version AUTOSAR/AP/record/SWS_PER_00048@rel:R25-11#098d4bc1
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#8a8820ba2026-09-30 Inspect R19-11 rel:R19-11#1050c61d2026-10-14 Inspect R20-11 rel:R20-11#68ed9c542026-10-14 Inspect R21-11 rel:R21-11#b0a3d35f2026-10-14 Inspect R22-11 rel:R22-11#4ff9fb912026-10-14 Inspect R23-11 rel:R23-11#c2afbb972026-10-14 Inspect R24-11 rel:R24-11#5988f1162026-10-14 Inspect R25-11 rel:R25-11#098d4bc12026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
ara::core::Result < void > RemoveKey (ara::core::StringView key) noexcept;
Removes a key and the associated value from this Key-Value Storage. RemoveKey may be delayed by an ongoing call from another thread to RemoveAllKeys, SyncTo Storage, or DiscardPendingChanges, or to SetValue, GetValue, GetCurrentValueSize, Remove Key, RecoverKey, or ResetKey for the same key-value pair. This method uses transaction semantics, the changes only take effect when SyncToStorage is called.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: ea5f39b17dd8
来源
本使用说明仅基于针对 Release R25-11 的 AUTOSAR Adaptive 平台规范。
实现者指南即将推出(复杂度 I2)
Header-Datei #include "ara/per/key_value_storage.h" Scope class ara::per::KeyValueStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe PerErrc ::kKeyNotFound rollback_semantics
Parameter (in)
Parameter Beschreibung key The key to be removed.
Rückgabewert
Typ Beschreibung ara::core::Result < void >A Result of void. In case of an error, it contains any of the errors defined below, or a vendor specific error.
Fehler
Fehlercode Beschreibung Returned if the provided key does not exist in the Key-Value Storage. PerErrc ::kIllegalWriteAccessrollback_semantics Returned if the Key-Value Storage is configured as read- only. PerErrc ::kPhysicalStorageFailurerollback_semantics Returned if access to the physical storage fails. PerErrc ::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be written because the structural integrity is corrupted. PerErrc ::kEncryptionFailedrollback_semantics Returned if the encryption or decryption of stored data fails. PerErrc ::kAuthenticationFailedrollback_semantics Returned if calculating or checking the MAC of stored data fails.
Status: valid/unmigrated
Version: rel:R25-11#60324d85
Versionshistorie & Revisions (1 transition, 8 revision)
Current State valid/unmigrated
Reason mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign 2026-08-13-status-backfill
Active Version AUTOSAR/AP/record/SWS_PER_00047@rel:R25-11#60324d85
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#4afcff802026-09-30 Inspect R19-11 rel:R19-11#653b04072026-10-14 Inspect R20-11 rel:R20-11#0d9118072026-10-14 Inspect R21-11 rel:R21-11#53a1e66d2026-10-14 Inspect R22-11 rel:R22-11#6d261f9c2026-10-14 Inspect R23-11 rel:R23-11#8d4fd37e2026-10-14 Inspect R24-11 rel:R24-11#e99607a92026-10-14 Inspect R25-11 rel:R25-11#60324d852026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
ara::core::Result < void > ResetKey (ara::core::StringView key) noexcept;
Resets a key of this Key-Value Storage to its initial value. ResetKey allows to reset a single key to its initial value. If the key is currently not available in the Key-Value Storage, it is re-created. Afterwards, the key-value pair will appear in both cases as if it was newly installed from the current Target Configuration. ResetKey will fail with kInitValueNotAvailable when neither Application Design nor Target Configuration define an initial value for the key. ResetKey may be delayed by an ongoing call from another thread to RemoveAllKeys, SyncTo Storage, or DiscardPendingChanges, or to SetValue, GetValue, GetCurrentValueSize, Remove Key, RecoverKey, or ResetKey for the same key-value pair.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: ddb1025237e2
来源
此使用说明是基于 AUTOSAR Adaptive R25-11 规范自动创建的。
实现者指南即将推出(复杂度 I2)
Header-Datei #include "ara/per/key_value_storage.h" Scope class ara::per::KeyValueStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe PerErrc ::kIllegalWrite rollback_semantics
Parameter (in)
Parameter Beschreibung key The key to be reset.
Rückgabewert
Typ Beschreibung ara::core::Result < void >A Result of void. In case of an error, it contains any of the errors defined below, or a vendor specific error.
Fehler
Fehlercode Beschreibung Access Returned if the Key-Value Storage is configured as read- only. PerErrc ::kPhysicalStorageFailureno_rollback_semantics Returned if access to the physical storage fails. PerErrc ::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be written because the structural integrity is corrupted. PerErrc ::kEncryptionFailedrollback_semantics Returned if the encryption or decryption of stored data fails. PerErrc ::kInitValueNotAvailablerollback_semantics Returned if no intitial value was configured for this key. PerErrc ::kOutOfStorageSpaceno_rollback_semantics Returned if the available physical storage space is insufficient for the initial value. PerErrc ::kQuotaExceededrollback_semantics Returned if the initial value would exceed the configured maximum AllowedSize of the Key-Value Storage. PerErrc ::kAuthenticationFailedrollback_semantics Returned if calculating or checking the MAC of stored data fails.
Status: valid/unmigrated
Version: rel:R25-11#e8b55641
Versionshistorie & Revisions (1 transition, 7 revision)
Current State valid/unmigrated
Reason mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign 2026-08-13-status-backfill
Active Version AUTOSAR/AP/record/SWS_PER_00426@rel:R25-11#e8b55641
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#cb5662c22026-09-30 Inspect R20-11 rel:R20-11#0af4dfeb2026-10-14 Inspect R21-11 rel:R21-11#504218172026-10-14 Inspect R22-11 rel:R22-11#e62113552026-10-14 Inspect R23-11 rel:R23-11#221d69462026-10-14 Inspect R24-11 rel:R24-11#e9b91b262026-10-14 Inspect R25-11 rel:R25-11#e8b556412026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
template <class T> ara::core::Result < void > SetValue (ara::core::StringView key, const T &value) noexcept;
Stores a key-value pair in this Key-Value Storage. If a value already exists and has the same data type as the new value, it is overwritten. If the new value has a different data type than the stored value, kDataTypeMismatch is returned. SetValue may be delayed by an ongoing call from another thread to RemoveAllKeys, SyncTo Storage, or DiscardPendingChanges, or to SetValue, GetValue, GetCurrentValueSize, Remove Key, RecoverKey, or ResetKey for the same key-value pair. This method uses transaction semantics, the changes only take effect when SyncToStorage is called.
Header-Datei #include "ara/per/key_value_storage.h" Scope class ara::per::KeyValueStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe PerErrc ::kIllegalWrite rollback_semantics
Template-Parameter
Parameter Beschreibung T The type of the value that shall be set.
Parameter (in)
Parameter Beschreibung key The key to assign the value to. value The value to store.
Rückgabewert
Typ Beschreibung ara::core::Result < void >A Result of void. In case of an error, it contains any of the errors defined below, or a vendor specific error.
Fehler
Fehlercode Beschreibung Access Returned if the Key-Value Storage is configured as read- only, or if it is configured as write-only-once and the key already exists. PerErrc ::kPhysicalStorageFailurerollback_semantics Returned if access to the physical storage fails. PerErrc ::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be written because the structural integrity is corrupted. PerErrc ::kEncryptionFailedrollback_semantics Returned if the encryption or decryption of stored data fails. PerErrc ::kDataTypeMismatchrollback_semantics Returned if the data type of an already stored value does not match the templated type. PerErrc ::kOutOfStorageSpacerollback_semantics Returned if the available physical storage space is insufficient for the new value. PerErrc ::kQuotaExceededrollback_semantics Returned if the new value would exceed the configured maximum AllowedSize of the Key-Value Storage. PerErrc ::kAuthenticationFailedrollback_semantics Returned if calculating or checking the MAC of stored data fails.
Status: valid/unmigrated
Version: rel:R25-11#7952a862
Versionshistorie & Revisions (1 transition, 8 revision)
Current State valid/unmigrated
Reason mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign 2026-08-13-status-backfill
Active Version AUTOSAR/AP/record/SWS_PER_00046@rel:R25-11#7952a862
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#914345842026-09-30 Inspect R19-11 rel:R19-11#394485ea2026-10-14 Inspect R20-11 rel:R20-11#9bd70fdb2026-10-14 Inspect R21-11 rel:R21-11#fc6359392026-10-14 Inspect R22-11 rel:R22-11#f00787ed2026-10-14 Inspect R23-11 rel:R23-11#640b066a2026-10-14 Inspect R24-11 rel:R24-11#6fe6b6b92026-10-14 Inspect R25-11 rel:R25-11#7952a8622026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
ara::core::Result < void > SyncToStorage () noexcept;
Flushes changed key-value pairs of the Key-Value Storage to the physical storage. SyncToStorage may be delayed by an ongoing call from another thread to RemoveAllKeys, DiscardPendingChanges, SetValue, RemoveKey, RecoverKey, or ResetKey.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 31e98920341c
来源
类 ara::per::KeyValueStorage 的同步方法 SyncToStorage 将已修改的键值对从内存缓冲区持久写入物理存储 [SWS_PER_00049] 。它不接受任何参数并返回 ara::core::Result<void>,声明为 noexcept,并被指定为异常安全且线程安全 [SWS_PER_00049] 。
交互与事务语义
修改性操作如 SetValue [SWS_PER_00046] 、RemoveKey [SWS_PER_00047] 和 RemoveAllKeys [SWS_PER_00048] 使用事务语义。它们的更改只有在调用 SyncToStorage 时才会生效 [SWS_PER_00046] 。如果要在写入之前放弃未决的修改,也可以调用 DiscardPendingChanges [SWS_PER_00365] 。
并发性
虽然该函数是线程安全的,但如果另一个线程中同时有 SetValue、RemoveKey、RemoveAllKeys、DiscardPendingChanges、RecoverKey 或 ResetKey 等操作处于活动状态,执行可能会被延迟 [SWS_PER_00049] 。
错误处理
如果同步失败,Result 将提供错误码 [SWS_PER_00049] :
具有回滚语义的错误(更改被回滚):PerErrc::kIntegrityCorrupted、PerErrc::kEncryptionFailed、PerErrc::kAuthenticationFailed、PerErrc::kQuotaExceeded 以及 PerErrc::kIllegalWrite [SWS_PER_00049] 。
无回滚语义的错误:物理访问错误时的 PerErrc::kPhysicalStorageFailure 以及存储空间不足时的 PerErrc::kOutOfStorageSpace [SWS_PER_00049] 。
配置错误:当存储配置为只读时,或者在仅写一次情况下键已存在时的错误码 Access [SWS_PER_00049] 。
本使用说明基于 AUTOSAR 规范 R25-11 自动生成。
实现者指南即将推出(复杂度 I2)
Header-Datei #include "ara/per/key_value_storage.h" Scope class ara::per::KeyValueStorage Exception-Sicherheit exception safe Thread-Sicherheit thread-safe PerErrc ::kIllegalWrite rollback_semantics
Rückgabewert
Typ Beschreibung ara::core::Result < void >A Result of void. In case of an error, it contains any of the errors defined below, or a vendor specific error.
Fehler
Fehlercode Beschreibung Access Returned if the Key-Value Storage is configured as read- only, or if it is configured as write-only-once and the key already exists. PerErrc ::kPhysicalStorageFailureno_rollback_semantics Returned if access to the physical storage fails. PerErrc ::kIntegrityCorruptedrollback_semantics Returned if stored data cannot be written because the structural integrity is corrupted. PerErrc ::kEncryptionFailedrollback_semantics Returned if the encryption of stored data fails. PerErrc ::kOutOfStorageSpaceno_rollback_semantics Returned if the available physical storage space is insufficient for the added/changed values. PerErrc ::kQuotaExceededrollback_semantics Returned if the added/changed values would exceed the configured maximumAllowedSize of the Key-Value Storage. PerErrc ::kAuthenticationFailedrollback_semantics Returned if calculating the MAC of stored data fails.
Status: valid/unmigrated
Version: rel:R25-11#bedc7cd3
Versionshistorie & Revisions (1 transition, 8 revision)
Current State valid/unmigrated
Reason mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign 2026-08-13-status-backfill
Active Version AUTOSAR/AP/record/SWS_PER_00049@rel:R25-11#bedc7cd3
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#2fe641532026-09-30 Inspect R19-11 rel:R19-11#a63d7bdd2026-10-14 Inspect R20-11 rel:R20-11#2b2f8c592026-10-14 Inspect R21-11 rel:R21-11#5a7863892026-10-14 Inspect R22-11 rel:R22-11#7ba28f5a2026-10-14 Inspect R23-11 rel:R23-11#0d431f372026-10-14 Inspect R24-11 rel:R24-11#111d5e172026-10-14 Inspect R25-11 rel:R25-11#bedc7cd32026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
KeyValueStorage & operator= (KeyValueStorage &&kvs)=delete;
The move assignment operator for KeyValueStorage shall not be used.
Status: valid/unmigrated
Version: rel:R25-11#0d46009f
Versionshistorie & Revisions (1 transition, 8 revision)
Current State valid/unmigrated
Reason mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign 2026-08-13-status-backfill
Active Version AUTOSAR/AP/record/SWS_PER_00323@rel:R25-11#0d46009f
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#d0aa05fb2026-09-30 Inspect R19-11 rel:R19-11#c9df11fd2026-10-14 Inspect R20-11 rel:R20-11#43e209d42026-10-14 Inspect R21-11 rel:R21-11#3fa50ca32026-10-14 Inspect R22-11 rel:R22-11#3a8958662026-10-14 Inspect R23-11 rel:R23-11#d865b2282026-10-14 Inspect R24-11 rel:R24-11#0d46009f2026-10-14 Inspect R25-11 rel:R25-11#0d46009f2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
KeyValueStorage & operator= (const KeyValueStorage &)=delete;
The copy assignment operator for KeyValueStorage shall not be used.
Status: valid/unmigrated
Version: rel:R25-11#7eccc0d0
Versionshistorie & Revisions (1 transition, 8 revision)
Current State valid/unmigrated
Reason mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign 2026-08-13-status-backfill
Active Version AUTOSAR/AP/record/SWS_PER_00325@rel:R25-11#7eccc0d0
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#25bc66e92026-09-30 Inspect R19-11 rel:R19-11#fec94e692026-10-14 Inspect R20-11 rel:R20-11#f05ae5d42026-10-14 Inspect R21-11 rel:R21-11#f05ae5d42026-10-14 Inspect R22-11 rel:R22-11#10326f822026-10-14 Inspect R23-11 rel:R23-11#2038e13d2026-10-14 Inspect R24-11 rel:R24-11#7eccc0d02026-10-14 Inspect R25-11 rel:R25-11#7eccc0d02026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
~KeyValueStorage () noexcept;
Destructor for KeyValueStorage.
Header-Datei #include "ara/per/key_value_storage.h" Scope class ara::per::KeyValueStorage Exception-Sicherheit exception safe Thread-Sicherheit not thread-safe
Status: valid/unmigrated
Version: rel:R25-11#686fc2dc
Versionshistorie & Revisions (1 transition, 8 revision)
Current State valid/unmigrated
Reason mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign 2026-08-13-status-backfill
Active Version AUTOSAR/AP/record/SWS_PER_00050@rel:R25-11#686fc2dc
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#c322006e2026-09-30 Inspect R19-11 rel:R19-11#d5051f6a2026-10-14 Inspect R20-11 rel:R20-11#a653a0472026-10-14 Inspect R21-11 rel:R21-11#a653a0472026-10-14 Inspect R22-11 rel:R22-11#3e0145ae2026-10-14 Inspect R23-11 rel:R23-11#8187a0df2026-10-14 Inspect R24-11 rel:R24-11#686fc2dc2026-10-14 Inspect R25-11 rel:R25-11#686fc2dc2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
gemini-3.8-flash-low· 2026-10-13 · 德文原文