Closed GoogleCodeExporter closed 9 years ago
I looked at the code and I don't think create time and access time are
currently stored. There might
be some overhead there (space-wise and time-wise to make the system call).
For getting the expiration time of a key, the existing ttl command will show
you how many seconds a
key has left to live:
dbravender@dbravender-laptop:~/oprojects/redis$ telnet localhost 6379
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
set x 1
a
+OK
expire x 100
:1
ttl x
:98
Original comment by dan.brav...@gmail.com
on 25 Dec 2009 at 4:35
Original comment by anti...@gmail.com
on 23 Aug 2010 at 3:44
Original issue reported on code.google.com by
gwebmast...@yahoo.com
on 17 Nov 2009 at 7:19