51

What's the command I use to see how many seconds are remaining?

TIMEX
  • 259,804
  • 351
  • 777
  • 1,080

1 Answers1

80
TTL key

See the documentation of the TTL command.

There is also a PTTL command since Redis 2.6 that returns the amount of time in milliseconds instead of seconds.

dee-see
  • 23,668
  • 5
  • 58
  • 91