@devvit/protos 0.11.8-next-2025-02-12-e4a7d52e8.0 → 0.11.8-next-2025-02-13-b7bcacfd0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -77,6 +77,9 @@ service RedisAPI {
77
77
  rpc ZRank(ZRankRequest) returns (google.protobuf.Int64Value) {}
78
78
  rpc ZIncrBy(ZIncrByRequest) returns (google.protobuf.DoubleValue) {}
79
79
  rpc ZScan(ZScanRequest) returns (ZScanResponse);
80
+
81
+ // Bitfield
82
+ rpc Bitfield(BitfieldRequest) returns (BitfieldResponse) {}
80
83
  }
81
84
 
82
85
  // This key scope determines the key namespacing in Redis storage
@@ -346,3 +349,50 @@ message WatchRequest {
346
349
  TransactionId transaction_id = 1;
347
350
  repeated string keys = 2;
348
351
  }
352
+
353
+ message BitfieldRequest {
354
+ string key = 1;
355
+ repeated BitfieldCommand commands = 2;
356
+ TransactionId transaction_id = 3; // Optional transaction id
357
+ }
358
+
359
+ message BitfieldCommand {
360
+ oneof command {
361
+ BitfieldGet get = 1;
362
+ BitfieldSet set = 2;
363
+ BitfieldIncrBy incr_by = 3;
364
+ BitfieldOverflow overflow = 4;
365
+ }
366
+ }
367
+
368
+ message BitfieldGet {
369
+ string encoding = 1;
370
+ string offset = 2;
371
+ }
372
+
373
+ message BitfieldSet {
374
+ string encoding = 1;
375
+ string offset = 2;
376
+ string value = 3;
377
+ }
378
+
379
+ message BitfieldIncrBy {
380
+ string encoding = 1;
381
+ string offset = 2;
382
+ string increment = 3;
383
+ }
384
+
385
+ message BitfieldOverflow {
386
+ BitfieldOverflowBehavior behavior = 1;
387
+ }
388
+
389
+ enum BitfieldOverflowBehavior {
390
+ BITFIELD_OVERFLOW_BEHAVIOR_UNSPECIFIED = 0;
391
+ BITFIELD_OVERFLOW_BEHAVIOR_WRAP = 1;
392
+ BITFIELD_OVERFLOW_BEHAVIOR_SAT = 2;
393
+ BITFIELD_OVERFLOW_BEHAVIOR_FAIL = 3;
394
+ }
395
+
396
+ message BitfieldResponse {
397
+ repeated int64 results = 1;
398
+ }