feat(FN-4924): complete Step 1 — add tasks TTL constant
Fusion-Task-Id: FN-4924 Fusion-Task-Lineage: a5f882e1-8348-4f9d-89be-15994adc148c
This commit is contained in:
committed by
gsxdsm
parent
f3f4a0b46b
commit
13bcb8ed85
@@ -4,6 +4,7 @@ import {
|
||||
SWR_CACHE_KEYS,
|
||||
SWR_DEFAULT_MAX_AGE_MS,
|
||||
SWR_LONG_MAX_AGE_MS,
|
||||
SWR_TASKS_MAX_AGE_MS,
|
||||
clearCache,
|
||||
readCache,
|
||||
writeCache,
|
||||
@@ -123,6 +124,7 @@ describe("swrCache", () => {
|
||||
expect(SWR_CACHE_KEYS.MAILBOX_OUTBOX_PREFIX).toBe("kb-dashboard-mailbox-outbox-cache:");
|
||||
expect(SWR_CACHE_KEYS.MAILBOX_UNREAD_COUNT_PREFIX).toBe("kb-dashboard-mailbox-unread-cache:");
|
||||
expect(SWR_DEFAULT_MAX_AGE_MS).toBe(10 * 60 * 1000);
|
||||
expect(SWR_TASKS_MAX_AGE_MS).toBe(60_000);
|
||||
expect(SWR_LONG_MAX_AGE_MS).toBe(24 * 60 * 60 * 1000);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user