Created
September 9, 2019 18:30
-
-
Save vlio20/a18823a1fc9a8d071600e41c36b2f74e to your computer and use it in GitHub Desktop.
memoizeAsync
This file contains hidden or 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
class DataProvider { | |
@memoizeAsync(1000 * 60 * 60) | |
getData(params: QueryParams): Promise<Data> { | |
// some code | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment