C++ Client-Side SDK
LaunchDarkly SDK
Public Member Functions | List of all members
PersistenceImplementationWrapper Class Reference
Inheritance diagram for PersistenceImplementationWrapper:
Inheritance graph
[legend]
Collaboration diagram for PersistenceImplementationWrapper:
Collaboration graph
[legend]

Public Member Functions

 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
 

Member Function Documentation

◆ 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_namespaceThe namespace of the data.
keyThe 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_namespaceThe namespace of the data.
keyThe 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_namespaceThe namespace for the data.
keyThe key for the data.
dataThe data to add or update.

Implements IPersistence.


The documentation for this class was generated from the following file: