async def test_ttl_nokey(self, r: aioredis.Redis):
        """TTL on servers 2.8 and after return -2 when the key doesn't exist"""
        assert await r.ttl("a") == -2
TTL on servers 2.8 and after return -2 when the key doesn't exist
tests/test_commands.py