mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Add flexibility to daily API usage limit
Summary: Allow exceeding the daily API usage limit for a doc based on additional allocations for the current hour and minute. See the doc comment on getDocApiUsageKeysToIncr for details. This means that up to 5 redis keys may be relevant at a time for a single document. Test Plan: Updated and expanded 'Daily API Limit' tests. Reviewers: dsagal Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D3368
This commit is contained in:
1
stubs/app/server/declarations.d.ts
vendored
1
stubs/app/server/declarations.d.ts
vendored
@@ -66,6 +66,7 @@ declare module "redis" {
|
||||
public sadd(key: string, val: string): Multi;
|
||||
public set(key: string, val: string): Multi;
|
||||
public setex(key: string, ttl: number, val: string): Multi;
|
||||
public ttl(key: string): Multi;
|
||||
public smembers(key: string): Multi;
|
||||
public srandmember(key: string): Multi;
|
||||
public srem(key: string, val: string): Multi;
|
||||
|
||||
Reference in New Issue
Block a user