|
|
|
@ -43365,12 +43365,10 @@ class CacheService {
|
|
|
|
|
return this._client
|
|
|
|
|
.putObject({
|
|
|
|
|
Bucket: this._bucket,
|
|
|
|
|
Key: path.join(this.getCacheFolder(), key),
|
|
|
|
|
Key: path.join(this.getCacheFolder(), `${key}.tgz`),
|
|
|
|
|
Body: data,
|
|
|
|
|
Metadata: {
|
|
|
|
|
ContentType: "text/plain",
|
|
|
|
|
ContentEncoding: "gzip"
|
|
|
|
|
}
|
|
|
|
|
ContentType: "text/plain",
|
|
|
|
|
ContentEncoding: "gzip"
|
|
|
|
|
})
|
|
|
|
|
.promise();
|
|
|
|
|
});
|
|
|
|
@ -43381,7 +43379,7 @@ class CacheService {
|
|
|
|
|
const response = yield this._client
|
|
|
|
|
.getObject({
|
|
|
|
|
Bucket: this._bucket,
|
|
|
|
|
Key: path.join(this.getCacheFolder(), key)
|
|
|
|
|
Key: path.join(this.getCacheFolder(), `${key}.tgz`)
|
|
|
|
|
})
|
|
|
|
|
.promise();
|
|
|
|
|
fs_1.default.writeFileSync(savePath, response.Body);
|
|
|
|
@ -43402,7 +43400,7 @@ class CacheService {
|
|
|
|
|
yield this._client
|
|
|
|
|
.headObject({
|
|
|
|
|
Bucket: this._bucket,
|
|
|
|
|
Key: path.join(this.getCacheFolder(), keys[i])
|
|
|
|
|
Key: path.join(this.getCacheFolder(), `${keys[i]}.tgz`)
|
|
|
|
|
})
|
|
|
|
|
.promise();
|
|
|
|
|
return keys[i];
|
|
|
|
|