Created
April 4, 2020 19:40
-
-
Save arpitbbhayani/6a92826dc2cccf3adf9d08e53e618c66 to your computer and use it in GitHub Desktop.
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
def get_ratelimit_config(key): | |
value = cache.get(key) | |
if not value: | |
value = config_store.get(key) | |
cache.put(key, value) | |
return value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment