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