C++ Server-Side SDK Redis Source
Provide SDK data via Redis
|
RedisDataSource represents a data source for the Server-Side SDK backed by Redis. It is meant to be used in place of the standard LaunchDarkly Streaming or Polling data sources. More...
#include <redis_source.hpp>
Static Public Member Functions | |
static tl::expected< std::unique_ptr< RedisDataSource >, std::string > | Create (std::string uri, std::string prefix) |
Creates a new RedisDataSource, or returns an error if construction failed. More... | |
RedisDataSource represents a data source for the Server-Side SDK backed by Redis. It is meant to be used in place of the standard LaunchDarkly Streaming or Polling data sources.
Call RedisDataSource::Create to obtain a new instance. This instance can be passed into the SDK's DataSystem configuration via the LazyLoad builder.
This implementation is backed by Redis++, a C++ wrapper for the hiredis library.
|
static |
Creates a new RedisDataSource, or returns an error if construction failed.
uri | Redis URI. The URI is passed to the underlying Redis++ client verbatim. See Redis++ API Reference for details on the possible URI formats. |
prefix | Prefix to use when reading SDK data from Redis. This allows multiple LaunchDarkly environments to be stored in the same database (under different prefixes.) |