forked from launchdarkly/c-server-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
redis.h
36 lines (25 loc) · 815 Bytes
/
redis.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <launchdarkly/api.h>
struct LDRedisConfig;
LD_EXPORT(struct LDRedisConfig *) LDRedisConfigNew();
LD_EXPORT(LDBoolean)
LDRedisConfigSetHost(
struct LDRedisConfig *const config, const char *const host);
LD_EXPORT(LDBoolean)
LDRedisConfigSetPort(
struct LDRedisConfig *const config, const unsigned short port);
LD_EXPORT(LDBoolean)
LDRedisConfigSetPrefix(
struct LDRedisConfig *const config, const char *const prefix);
LD_EXPORT(LDBoolean)
LDRedisConfigSetPoolSize(
struct LDRedisConfig *const config, const unsigned int poolSize);
LD_EXPORT(void) LDRedisConfigFree(struct LDRedisConfig *const config);
LD_EXPORT(struct LDStoreInterface *)
LDStoreInterfaceRedisNew(struct LDRedisConfig *const config);
#ifdef __cplusplus
}
#endif