C++ Client-Side SDK
LaunchDarkly SDK
persistence.hpp
1 #pragma once
2 
3 #include <string>
4 
34 class IPersistence {
35  public:
44  virtual void Set(std::string storage_namespace,
45  std::string key,
46  std::string data) noexcept = 0;
47 
55  virtual void Remove(std::string storage_namespace,
56  std::string key) noexcept = 0;
57 
66  virtual std::optional<std::string> Read(std::string storage_namespace,
67  std::string key) noexcept = 0;
68 };
Definition: persistence.hpp:34
virtual void Remove(std::string storage_namespace, std::string key) noexcept=0
virtual void Set(std::string storage_namespace, std::string key, std::string data) noexcept=0
virtual std::optional< std::string > Read(std::string storage_namespace, std::string key) noexcept=0