9951 explained code solutions for 126 technologies


php-redisGet expiration time of key in Redis


$redis->ttl('key');ctrl + c
$redis

Redis object after connection

ttl

returns seconds left for the key to live

key

name of the key to get expiration for