-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bulk-req): bulk req cache fix for multitenant applications (#95)
* add console * chore(release): 2.4.1-bulk-api-test.0 * feat(cache): Add caching layer for bulk request API * chore(release): 2.5.0-bulk-api-test.0 * fix cache * bulk req fix * fix(ttl): add ttl * chore(release): 2.5.0-bulk-api-test.1 * remove console logs * revert package version change
- Loading branch information
1 parent
ed684e5
commit 926ef3e
Showing
2 changed files
with
20 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
const CACHE_TIME = 240000; | ||
const MAX_CACHE = 200; | ||
const BULK_REQ_TTL_CACHE = 10000000; | ||
const ENABLE_TTL_CACHE = false; | ||
|
||
module.exports = { | ||
CACHE_TIME, | ||
MAX_CACHE, | ||
ENABLE_TTL_CACHE | ||
ENABLE_TTL_CACHE, | ||
BULK_REQ_TTL_CACHE | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters