code: def __get_ttl(self, item: str) -> int:
          
          connection = self.__get_connection()
          ttl = connection.ttl(item)
          BlackRed.__release_connection(connection)
          return ttl
docs: Get the amount of time a specific item will remain in the database.
  
          :param str item: The item to get the TTL for
          :return: Time in seconds. Returns None for a non-existing element.
          :rtype: int