-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Shahar-Y/develop
Version 1.0.10 - forceDB
- Loading branch information
Showing
5 changed files
with
50 additions
and
7 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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,13 +1,19 @@ | ||
/** | ||
* @param silent - if true, don't log anything to the console | ||
* @param expire - the default expiration time in seconds | ||
*/ | ||
export type TCOptions = { | ||
silent: boolean; | ||
expire: number; | ||
}; | ||
|
||
/** | ||
* expire - the expiration time in seconds. | ||
* callbackFunction - the function to call if the retrieveFunction throws an error after cache failed. | ||
* @param expire - the expiration time in seconds. | ||
* @param callbackFunction - the function to call if the retrieveFunction throws an error after cache failed. | ||
* @param forceDB - if true, will force the retrieveFunction to be called even if the key is found in cache. Defaults to false. | ||
*/ | ||
export type OperationOptions = { | ||
expire: number; | ||
callbackFunction: Function; | ||
forceDB: boolean; | ||
}; |