TTL key

Returns the time-to-live for a given key.

  • -2 for does not exist
  • -1 for indefinite