src/M6Web/Component/Redis/Cache.php
public function ttl($key)
    {
        $start = microtime(true);
        $ret = $this->getRedis($key)->ttl($this->getPatternKey().$key);
        $this->notifyEvent('ttl', array($this->getPatternKey().$key), microtime(true) - $start);

        return $ret;
    }
public function ttl($key)
    {
        $start = microtime(true);
        $ret = $this->getRedis($key)->ttl($this->getPatternKey().$key);
        $this->notifyEvent('ttl', array($this->getPatternKey().$key), microtime(true) - $start);

        return $ret;
    }
return a key ttl
@param string $key clé

@return integer