UNPKG
@crypto-dex-sdk/path-finder-api
Version:
latest (0.1.4)
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.2
0.0.1
Zenlink Interface Path Finder Api
@crypto-dex-sdk/path-finder-api
/
lib
/
redis.ts
13 lines
(9 loc)
•
220 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
Redis
from
'ioredis'
if
(!process.
env
.
REDIS_URL
)
throw
new
Error
(
'REDIS_URL is required'
)
const
redis =
new
Redis
(process.
env
.
REDIS_URL
, {
tls
: {
rejectUnauthorized
:
false
, }, })
export
default
redis