@get_client()
    def ttl(self, client, key):
        if client.exists(key):
            return client.ttl(key)
        return 0
Returns the 'time-to-live' of a key.  If the key is not volitile,
dataset/ETHPy150Open sebleier/django-redis-cache/redis_cache/backends/base.py/BaseRedisCache.ttl