Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
babys first python - pretty much copy pasta
token_lookup_key = "token-"+users.get_current_user().user_id();
token = memcache.get(token_lookup_key)
if token is None:
token = channel.create_channel(users.get_current_user().user_id())
memcache.add(token_lookup_key, token, 7200)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment