new redis keys

This commit is contained in:
Simon Martín
2018-03-01 15:50:40 +01:00
parent 67b2343571
commit 136c6fa70b
+2 -2
View File
@@ -146,7 +146,7 @@ UserLimitsApi.prototype.getRateLimit = function (user, endpointGroup, callback)
* @param {string} endpointGroup
*/
function getStoreKey(user, endpointGroup) {
return `limits:rate:store:${user}:${endpointGroup}`;
return `limits:rate:store:${user}:maps:${endpointGroup}`;
}
/**
@@ -156,7 +156,7 @@ function getStoreKey(user, endpointGroup) {
* @param {string} endpointGroup
*/
function getStatusKey(user, endpointGroup) {
return `limits:rate:status:${user}:${endpointGroup}`;
return `limits:rate:status:${user}:maps:${endpointGroup}`;
}
function getRateLimitLuaScript() {