C++ Server-Side SDK Redis Source
Provide SDK data via Redis
redis_source.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 #ifdef __cplusplus
10 extern "C" {
11 // only need to export C interface if
12 // used by C++ source code
13 #endif
14 
56 typedef struct _LDServerLazyLoadRedisSource* LDServerLazyLoadRedisSource;
57 
58 /* Defines the size of the error message buffer in LDServerLazyLoadResult.
59  */
60 #ifndef LDSERVER_LAZYLOAD_REDISSOURCE_ERROR_MESSAGE_SIZE
61 #define LDSERVER_LAZYLOAD_REDISSOURCE_ERROR_MESSAGE_SIZE 256
62 #endif
63 
78  char error_message[LDSERVER_LAZYLOAD_REDISSOURCE_ERROR_MESSAGE_SIZE];
79 };
80 
105 LD_EXPORT(bool)
106 LDServerLazyLoadRedisSource_New(char const* uri,
107  char const* prefix,
108  struct LDServerLazyLoadRedisResult* out_result);
109 
114 LD_EXPORT(void)
116 
117 #ifdef __cplusplus
118 }
119 #endif
120 
121 // NOLINTEND modernize-use-using
LDServerLazyLoadRedisSource_New(char const *uri, char const *prefix, struct LDServerLazyLoadRedisResult *out_result)
Creates a new Redis data source suitable for usage in the SDK's Lazy Load data system.
Definition: redis_source.cpp:13
struct _LDServerLazyLoadRedisSource * LDServerLazyLoadRedisSource
LDServerLazyLoadRedisSource represents a data source for the Server-Side SDK backed by Redis....
Definition: redis_source.h:56
LDServerLazyLoadRedisSource_Free(LDServerLazyLoadRedisSource source)
Frees a Redis data source pointer. Only necessary to call if not passing ownership to SDK configurati...
Definition: redis_source.cpp:50
Stores the result of calling LDDServerLazyLoadRedisSource_New.
Definition: redis_source.h:76