public function expire($key, $timeout) {
        try {
            return $this->getRedis()->pexpire($key, $timeout);
        } catch (RedisException $ex) {
            throw new ConnectException();
        }
    }