|
C++ Server-Side SDK Redis Source
Provide SDK data via Redis
|
LaunchDarkly Server-side Redis Big Segments Store C Binding. More...
#include <launchdarkly/bindings/c/export.h>#include <stdbool.h>
Go to the source code of this file.
Classes | |
| struct | LDServerBigSegmentsRedisResult |
| Stores the result of calling LDServerBigSegmentsRedisStore_New. More... | |
Macros | |
| #define | LDSERVER_BIGSEGMENTS_REDISSTORE_ERROR_MESSAGE_SIZE 256 |
Typedefs | |
| typedef struct _LDServerBigSegmentsRedisStore * | LDServerBigSegmentsRedisStore |
| LDServerBigSegmentsRedisStore is a Big Segments persistent store for the Server-Side SDK backed by Redis. It is meant to be passed to the SDK via the Big Segments config builder. More... | |
Functions | |
| LDServerBigSegmentsRedisStore_New (char const *uri, char const *prefix, struct LDServerBigSegmentsRedisResult *out_result) | |
| Creates a new Redis Big Segment store suitable for usage in the SDK's Big Segments configuration. More... | |
| LDServerBigSegmentsRedisStore_Free (LDServerBigSegmentsRedisStore store) | |
| Frees a Redis Big Segment store pointer. Only necessary to call if not passing ownership to the SDK's Big Segments configuration. | |
LaunchDarkly Server-side Redis Big Segments Store C Binding.
| typedef struct _LDServerBigSegmentsRedisStore* LDServerBigSegmentsRedisStore |
LDServerBigSegmentsRedisStore is a Big Segments persistent store for the Server-Side SDK backed by Redis. It is meant to be passed to the SDK via the Big Segments config builder.
Call LDServerBigSegmentsRedisStore_New to obtain a new instance. This instance is passed into the SDK's Big Segments configuration.
Example:
This implementation is backed by Redis++, a C++ wrapper for the hiredis library.
| LDServerBigSegmentsRedisStore_New | ( | char const * | uri, |
| char const * | prefix, | ||
| struct LDServerBigSegmentsRedisResult * | out_result | ||
| ) |
Creates a new Redis Big Segment store suitable for usage in the SDK's Big Segments configuration.
In this system, the SDK will query Redis for Big Segments membership as required, with an in-memory cache to reduce the number of queries.
Data is never written back to Redis by the SDK; the LaunchDarkly Relay Proxy populates the store.
| uri | Redis URI string. Must not be NULL or empty string. |
| prefix | Prefix to use when reading SDK data from Redis. This allows multiple SDK environments to coexist in the same database, or for the SDK's data to coexist with other unrelated data. Must not be NULL. |
| out_result | Pointer to struct where the store pointer or an error message should be stored. |