Skip to content

Commit

Permalink
use cache.storev2
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammisuli committed Jul 3, 2024
1 parent 5838852 commit 715f119
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 19 deletions.
9 changes: 9 additions & 0 deletions workflow-steps/cache/generated_protos/cache_connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,14 @@ export const CacheService = {
O: StoreResponse,
kind: MethodKind.Unary,
},
/**
* @generated from rpc nrwl.grpc.CacheService.StoreV2
*/
storeV2: {
name: 'StoreV2',
I: StoreRequest,
O: StoreResponse,
kind: MethodKind.Unary,
},
},
} as const;
34 changes: 17 additions & 17 deletions workflow-steps/cache/generated_protos/cache_pb.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-es v1.3.1 with parameter "target=ts"
// @generated by protoc-gen-es v1.7.2 with parameter "target=ts"
// @generated from file cache.proto (package nrwl.grpc, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down Expand Up @@ -53,28 +53,28 @@ export class RestoreRequest extends Message<RestoreRequest> {

static fromBinary(
bytes: Uint8Array,
options?: Partial<BinaryReadOptions>
options?: Partial<BinaryReadOptions>,
): RestoreRequest {
return new RestoreRequest().fromBinary(bytes, options);
}

static fromJson(
jsonValue: JsonValue,
options?: Partial<JsonReadOptions>
options?: Partial<JsonReadOptions>,
): RestoreRequest {
return new RestoreRequest().fromJson(jsonValue, options);
}

static fromJsonString(
jsonString: string,
options?: Partial<JsonReadOptions>
options?: Partial<JsonReadOptions>,
): RestoreRequest {
return new RestoreRequest().fromJsonString(jsonString, options);
}

static equals(
a: RestoreRequest | PlainMessage<RestoreRequest> | undefined,
b: RestoreRequest | PlainMessage<RestoreRequest> | undefined
b: RestoreRequest | PlainMessage<RestoreRequest> | undefined,
): boolean {
return proto3.util.equals(RestoreRequest, a, b);
}
Expand Down Expand Up @@ -108,28 +108,28 @@ export class RestoreResponse extends Message<RestoreResponse> {

static fromBinary(
bytes: Uint8Array,
options?: Partial<BinaryReadOptions>
options?: Partial<BinaryReadOptions>,
): RestoreResponse {
return new RestoreResponse().fromBinary(bytes, options);
}

static fromJson(
jsonValue: JsonValue,
options?: Partial<JsonReadOptions>
options?: Partial<JsonReadOptions>,
): RestoreResponse {
return new RestoreResponse().fromJson(jsonValue, options);
}

static fromJsonString(
jsonString: string,
options?: Partial<JsonReadOptions>
options?: Partial<JsonReadOptions>,
): RestoreResponse {
return new RestoreResponse().fromJsonString(jsonString, options);
}

static equals(
a: RestoreResponse | PlainMessage<RestoreResponse> | undefined,
b: RestoreResponse | PlainMessage<RestoreResponse> | undefined
b: RestoreResponse | PlainMessage<RestoreResponse> | undefined,
): boolean {
return proto3.util.equals(RestoreResponse, a, b);
}
Expand Down Expand Up @@ -169,28 +169,28 @@ export class StoreRequest extends Message<StoreRequest> {

static fromBinary(
bytes: Uint8Array,
options?: Partial<BinaryReadOptions>
options?: Partial<BinaryReadOptions>,
): StoreRequest {
return new StoreRequest().fromBinary(bytes, options);
}

static fromJson(
jsonValue: JsonValue,
options?: Partial<JsonReadOptions>
options?: Partial<JsonReadOptions>,
): StoreRequest {
return new StoreRequest().fromJson(jsonValue, options);
}

static fromJsonString(
jsonString: string,
options?: Partial<JsonReadOptions>
options?: Partial<JsonReadOptions>,
): StoreRequest {
return new StoreRequest().fromJsonString(jsonString, options);
}

static equals(
a: StoreRequest | PlainMessage<StoreRequest> | undefined,
b: StoreRequest | PlainMessage<StoreRequest> | undefined
b: StoreRequest | PlainMessage<StoreRequest> | undefined,
): boolean {
return proto3.util.equals(StoreRequest, a, b);
}
Expand Down Expand Up @@ -224,28 +224,28 @@ export class StoreResponse extends Message<StoreResponse> {

static fromBinary(
bytes: Uint8Array,
options?: Partial<BinaryReadOptions>
options?: Partial<BinaryReadOptions>,
): StoreResponse {
return new StoreResponse().fromBinary(bytes, options);
}

static fromJson(
jsonValue: JsonValue,
options?: Partial<JsonReadOptions>
options?: Partial<JsonReadOptions>,
): StoreResponse {
return new StoreResponse().fromJson(jsonValue, options);
}

static fromJsonString(
jsonString: string,
options?: Partial<JsonReadOptions>
options?: Partial<JsonReadOptions>,
): StoreResponse {
return new StoreResponse().fromJsonString(jsonString, options);
}

static equals(
a: StoreResponse | PlainMessage<StoreResponse> | undefined,
b: StoreResponse | PlainMessage<StoreResponse> | undefined
b: StoreResponse | PlainMessage<StoreResponse> | undefined,
): boolean {
return proto3.util.equals(StoreResponse, a, b);
}
Expand Down
9 changes: 9 additions & 0 deletions workflow-steps/cache/output/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5935,6 +5935,15 @@ var CacheService = {
I: StoreRequest,
O: StoreResponse,
kind: MethodKind.Unary
},
/**
* @generated from rpc nrwl.grpc.CacheService.StoreV2
*/
storeV2: {
name: "StoreV2",
I: StoreRequest,
O: StoreResponse,
kind: MethodKind.Unary
}
}
};
Expand Down
11 changes: 10 additions & 1 deletion workflow-steps/cache/output/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -5923,6 +5923,15 @@ var CacheService = {
I: StoreRequest,
O: StoreResponse,
kind: MethodKind.Unary
},
/**
* @generated from rpc nrwl.grpc.CacheService.StoreV2
*/
storeV2: {
name: "StoreV2",
I: StoreRequest,
O: StoreResponse,
kind: MethodKind.Unary
}
}
};
Expand Down Expand Up @@ -5978,7 +5987,7 @@ if (!!cacheWasHit) {
}
const key = hashKey(input_key);
const paths = input_paths.split("\n").filter((p) => p);
cacheClient.store(
cacheClient.storeV2(
new StoreRequest({
key,
paths
Expand Down
2 changes: 1 addition & 1 deletion workflow-steps/cache/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if (!!cacheWasHit) {
const paths = input_paths.split('\n').filter((p) => p);

cacheClient
.store(
.storeV2(
new StoreRequest({
key,
paths,
Expand Down

0 comments on commit 715f119

Please sign in to comment.