2808 explained code solutions for 75 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