3 #include <launchdarkly/server_side/integrations/big_segments/big_segment_store_types.hpp>
5 #include <tl/expected.hpp>
10 namespace launchdarkly::server_side::integrations {
41 using GetMembershipResult = tl::expected<Membership, std::string>;
42 using GetMetadataResult =
43 tl::expected<std::optional<StoreMetadata>, std::string>;
57 std::string
const& context_hash)
const noexcept = 0;
66 [[nodiscard]]
virtual GetMetadataResult
GetMetadata() const noexcept = 0;
Interface for a Big Segments persistent store.
Definition: ibig_segment_store.hpp:33
virtual GetMetadataResult GetMetadata() const noexcept=0
Returns store-level metadata used by the SDK to detect staleness.
virtual GetMembershipResult GetMembership(std::string const &context_hash) const noexcept=0
Looks up the Big Segments membership for a single context.