Files
tiktok-dl/config.ts
2022-01-10 07:28:15 +00:00

21 lines
506 B
TypeScript

export const rateLimitConfig = {
'enable': true, // you can set it to 'false'
/**
* How much rate limit count per x second(s)
* -is allowed? Default: 60 requests
*/
'maxRatelimitPerXSeconds': 60,
/**
* Every x second(s), the ratelimit data will removed.
* So, their ratelimit data will removed.
* PS: Data stored on redis.
*/
'ratelimitTime': 60,
};
/**
* Provider response data will stored on redis.
* Default: 1 hour
*/
export const providerCache = 3600;