Build Phase 2 judge vertical slice
This commit is contained in:
1 parent
e6329ecabb
commit
ec274419c3
41 files changed
+2945
-669
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import Redis from "ioredis"
|
||||
|
||||
import { config } from "./config"
|
||||
|
||||
export const redis = new Redis(config.redisUrl, {
|
||||
maxRetriesPerRequest: 1,
|
||||
})
|
||||
|
||||
export function createBlockingRedis() {
|
||||
return new Redis(config.redisUrl, {
|
||||
maxRetriesPerRequest: null,
|
||||
})
|
||||
}
|
||||
|
||||
export function createSubscriberRedis() {
|
||||
return new Redis(config.redisUrl, {
|
||||
maxRetriesPerRequest: null,
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user