Skip to content

Commit 9951ebd

Browse files
committed
feat(redis): add CDP_REDIS_DB configuration option
1 parent 4aa5b4e commit 9951ebd

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

plugin-server/src/cdp/redis.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export const createCdpRedisPool = (config: PluginsServerConfig): CdpRedis => {
9393
const client = await createRedisClient(config.CDP_REDIS_HOST, {
9494
port: config.CDP_REDIS_PORT,
9595
password: config.CDP_REDIS_PASSWORD,
96+
db: config.CDP_REDIS_DB,
9697
})
9798

9899
client.defineCommand('checkRateLimit', {

plugin-server/src/config/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ export function getDefaultConfig(): PluginsServerConfig {
167167
CDP_EVENT_PROCESSOR_EXECUTE_FIRST_STEP: true,
168168
CDP_REDIS_HOST: '',
169169
CDP_REDIS_PORT: 6479,
170+
CDP_REDIS_DB: 0,
170171
CDP_CYCLOTRON_BATCH_DELAY_MS: 50,
171172
CDP_CYCLOTRON_BATCH_SIZE: 300,
172173
CDP_GOOGLE_ADWORDS_DEVELOPER_TOKEN: '',

plugin-server/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export type CdpConfig = {
126126
CDP_REDIS_HOST: string
127127
CDP_REDIS_PORT: number
128128
CDP_REDIS_PASSWORD: string
129+
CDP_REDIS_DB: number
129130
CDP_EVENT_PROCESSOR_EXECUTE_FIRST_STEP: boolean
130131
CDP_GOOGLE_ADWORDS_DEVELOPER_TOKEN: string
131132
CDP_FETCH_TIMEOUT_MS: number

0 commit comments

Comments
 (0)