|
| PersistenceImplementationWrapper (LDPersistence impl) |
|
void | Set (std::string storage_namespace, std::string key, std::string data) noexcept override |
|
void | Remove (std::string storage_namespace, std::string key) noexcept override |
|
std::optional< std::string > | Read (std::string storage_namespace, std::string key) noexcept override |
|
◆ Read()
std::optional<std::string> PersistenceImplementationWrapper::Read |
( |
std::string |
storage_namespace, |
|
|
std::string |
key |
|
) |
| |
|
inlineoverridevirtualnoexcept |
Attempt to read a value from the store.
- Parameters
-
storage_namespace | The namespace of the data. |
key | The key of the data. |
- Returns
- The read value, or std::nullopt if the value does not exist or could not be read.
Implements IPersistence.
◆ Remove()
void PersistenceImplementationWrapper::Remove |
( |
std::string |
storage_namespace, |
|
|
std::string |
key |
|
) |
| |
|
inlineoverridevirtualnoexcept |
Remove a value from the store. If the value cannot be removed, then the function should complete normally.
- Parameters
-
storage_namespace | The namespace of the data. |
key | The key of the data. |
Implements IPersistence.
◆ Set()
void PersistenceImplementationWrapper::Set |
( |
std::string |
storage_namespace, |
|
|
std::string |
key, |
|
|
std::string |
data |
|
) |
| |
|
inlineoverridevirtualnoexcept |
Add or update a value in the store. If the value cannot be set, then the function should complete normally.
- Parameters
-
storage_namespace | The namespace for the data. |
key | The key for the data. |
data | The data to add or update. |
Implements IPersistence.
The documentation for this class was generated from the following file:
- src/bindings/c/builder.cpp