Last active
July 30, 2017 02:42
-
-
Save erickmendonca/50c546ba42899971ee3b5bc55fb3d722 to your computer and use it in GitHub Desktop.
Gotchas
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
data = { | |
'full_name': 'Bruce Banner', | |
'birth_date': '1962-05-01', | |
# a lot of other data | |
} | |
cache_id = hash(data['full_name']) | hash(data['birth_date']) | |
cache.set(cache_id, data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment