Created
May 27, 2021 05:25
-
-
Save thanakijwanavit/6ddd100b7e2d957914a8973dca12cb5b to your computer and use it in GitHub Desktop.
disk cache for python
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
from diskcache import Cache | |
cache = Cache(directory='/tmp/') | |
@cache.memoize(tag='getApiKey',expire=900) | |
def somefunctionwithstringInput(input): | |
return 'hello' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment