def has_key(self, key, version=None):
        return self.get(key, version=version) is not None
Returns True if the key is in the cache and has not expired.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/core/cache/backends/base.py/BaseCache.has_key