Skip to content

Instantly share code, notes, and snippets.

@tabletcorry
Created March 31, 2015 17:30
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 tabletcorry/63a54774e01f223703d5 to your computer and use it in GitHub Desktop.
Save tabletcorry/63a54774e01f223703d5 to your computer and use it in GitHub Desktop.
def exists(self, key):
"""Check for existence in cache
:param key: Unique key to check
:type key: str
:rtype: bool
"""
return self.__contains__(key)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment