Skip to content

Instantly share code, notes, and snippets.

@erickmendonca
Last active July 30, 2017 02:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erickmendonca/50c546ba42899971ee3b5bc55fb3d722 to your computer and use it in GitHub Desktop.
Save erickmendonca/50c546ba42899971ee3b5bc55fb3d722 to your computer and use it in GitHub Desktop.
Gotchas
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