C++ Server-Side SDK Redis Source
Provide SDK data via Redis
redis_big_segment_store.h
Go to the documentation of this file.
1 
4 // NOLINTBEGIN modernize-use-using
5 #pragma once
6 
7 #include <launchdarkly/bindings/c/export.h>
8 
9 #include <stdbool.h>
10 
11 #ifdef __cplusplus
12 extern "C" {
13 // only need to export C interface if
14 // used by C++ source code
15 #endif
16 
52 typedef struct _LDServerBigSegmentsRedisStore* LDServerBigSegmentsRedisStore;
53 
54 /* Defines the size of the error message buffer in
55  * LDServerBigSegmentsRedisResult.
56  */
57 #ifndef LDSERVER_BIGSEGMENTS_REDISSTORE_ERROR_MESSAGE_SIZE
58 #define LDSERVER_BIGSEGMENTS_REDISSTORE_ERROR_MESSAGE_SIZE 256
59 #endif
60 
80  char error_message[LDSERVER_BIGSEGMENTS_REDISSTORE_ERROR_MESSAGE_SIZE];
81 };
82 
108 LD_EXPORT(bool)
110  char const* uri,
111  char const* prefix,
112  struct LDServerBigSegmentsRedisResult* out_result);
113 
118 LD_EXPORT(void)
120 
121 #ifdef __cplusplus
122 }
123 #endif
124 
125 // NOLINTEND modernize-use-using
struct _LDServerBigSegmentsRedisStore * LDServerBigSegmentsRedisStore
LDServerBigSegmentsRedisStore is a Big Segments persistent store for the Server-Side SDK backed by Re...
Definition: redis_big_segment_store.h:52
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.
Definition: redis_big_segment_store.cpp:12
LDServerBigSegmentsRedisStore_Free(LDServerBigSegmentsRedisStore store)
Frees a Redis Big Segment store pointer. Only necessary to call if not passing ownership to the SDK's...
Definition: redis_big_segment_store.cpp:49
Stores the result of calling LDServerBigSegmentsRedisStore_New.
Definition: redis_big_segment_store.h:78