new redis keys
This commit is contained in:
parent
7a6ef637ae
commit
25d1e5442c
@ -34,6 +34,8 @@ class UserLimits {
|
||||
sha: null,
|
||||
lua: getRateLimitLuaScript
|
||||
};
|
||||
|
||||
this.preprareRateLimit();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -46,7 +48,7 @@ class UserLimits {
|
||||
* @param {string} endpointGroup
|
||||
*/
|
||||
static getRateLimitsStoreKey(user, endpointGroup) {
|
||||
return `limits:rate:store:${user}:${endpointGroup}`;
|
||||
return `limits:rate:store:${user}:sql:${endpointGroup}`;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -56,7 +58,7 @@ class UserLimits {
|
||||
* @param {string} endpointGroup
|
||||
*/
|
||||
static getRateLimitStatusKey(user, endpointGroup) {
|
||||
return `limits:rate:status:${user}:${endpointGroup}`;
|
||||
return `limits:rate:status:${user}:sql:${endpointGroup}`;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user