public function ttl($key) {
        try {
            $result = $this->getRedis()->pttl($key);
            return ($result != -1) ? $result : false;
        } catch (RedisException $ex) {
            throw new ConnectException();
        }
    }