@devvit/protos 0.11.8-next-2025-02-25-ea5bddb86.0 → 0.11.8-next-2025-02-25-5add1d1b7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,6 +29,7 @@ service RedisAPI {
29
29
  rpc Get(KeyRequest) returns (google.protobuf.StringValue) {}
30
30
  rpc GetBytes(KeyRequest) returns (google.protobuf.BytesValue) {}
31
31
  rpc Set(SetRequest) returns (google.protobuf.StringValue) {}
32
+ rpc Exists(KeysRequest) returns (ExistsResponse) {}
32
33
  rpc Del(KeysRequest) returns (google.protobuf.Int64Value) {}
33
34
  rpc Type(KeyRequest) returns (google.protobuf.StringValue) {}
34
35
 
@@ -45,6 +46,7 @@ service RedisAPI {
45
46
  rpc HKeys(KeyRequest) returns (KeysResponse);
46
47
  rpc HIncrBy(HIncrByRequest) returns (google.protobuf.Int64Value) {}
47
48
  rpc HLen(KeyRequest) returns (google.protobuf.Int64Value) {}
49
+ rpc HSetNX(HSetNXRequest) returns (HSetNXResponse) {}
48
50
 
49
51
  // Transactions
50
52
  rpc Multi(TransactionId) returns (google.protobuf.Empty) {}
@@ -236,6 +238,10 @@ message KeysResponse {
236
238
  repeated string keys = 1;
237
239
  }
238
240
 
241
+ message ExistsResponse {
242
+ int64 existing_keys = 1;
243
+ }
244
+
239
245
  message HGetRequest {
240
246
  string key = 1;
241
247
  string field = 2;
@@ -257,6 +263,10 @@ message HSetRequest {
257
263
  optional RedisKeyScope scope = 100;
258
264
  }
259
265
 
266
+ message HSetNXResponse {
267
+ int64 success = 1;
268
+ }
269
+
260
270
  message HDelRequest {
261
271
  string key = 1;
262
272
  repeated string fields = 2;
@@ -402,3 +412,11 @@ enum BitfieldOverflowBehavior {
402
412
  message BitfieldResponse {
403
413
  repeated int64 results = 1;
404
414
  }
415
+
416
+ message HSetNXRequest {
417
+ string key = 1;
418
+ string field = 2;
419
+ string value = 3;
420
+ TransactionId transaction_id = 4; // Optional transaction id
421
+ optional RedisKeyScope scope = 100;
422
+ }