valkey-rb 1.0.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.
Files changed (42) hide show
  1. checksums.yaml +7 -0
  2. data/.rubocop.yml +58 -0
  3. data/.rubocop_todo.yml +22 -0
  4. data/README.md +95 -0
  5. data/Rakefile +23 -0
  6. data/lib/valkey/bindings.rb +224 -0
  7. data/lib/valkey/commands/bitmap_commands.rb +86 -0
  8. data/lib/valkey/commands/cluster_commands.rb +259 -0
  9. data/lib/valkey/commands/connection_commands.rb +318 -0
  10. data/lib/valkey/commands/function_commands.rb +255 -0
  11. data/lib/valkey/commands/generic_commands.rb +525 -0
  12. data/lib/valkey/commands/geo_commands.rb +87 -0
  13. data/lib/valkey/commands/hash_commands.rb +587 -0
  14. data/lib/valkey/commands/hyper_log_log_commands.rb +51 -0
  15. data/lib/valkey/commands/json_commands.rb +389 -0
  16. data/lib/valkey/commands/list_commands.rb +348 -0
  17. data/lib/valkey/commands/module_commands.rb +125 -0
  18. data/lib/valkey/commands/pubsub_commands.rb +237 -0
  19. data/lib/valkey/commands/scripting_commands.rb +286 -0
  20. data/lib/valkey/commands/server_commands.rb +961 -0
  21. data/lib/valkey/commands/set_commands.rb +220 -0
  22. data/lib/valkey/commands/sorted_set_commands.rb +971 -0
  23. data/lib/valkey/commands/stream_commands.rb +636 -0
  24. data/lib/valkey/commands/string_commands.rb +359 -0
  25. data/lib/valkey/commands/transaction_commands.rb +175 -0
  26. data/lib/valkey/commands/vector_search_commands.rb +271 -0
  27. data/lib/valkey/commands.rb +68 -0
  28. data/lib/valkey/errors.rb +41 -0
  29. data/lib/valkey/libglide_ffi.so +0 -0
  30. data/lib/valkey/opentelemetry.rb +207 -0
  31. data/lib/valkey/pipeline.rb +20 -0
  32. data/lib/valkey/protobuf/command_request_pb.rb +51 -0
  33. data/lib/valkey/protobuf/connection_request_pb.rb +51 -0
  34. data/lib/valkey/protobuf/response_pb.rb +39 -0
  35. data/lib/valkey/pubsub_callback.rb +10 -0
  36. data/lib/valkey/request_error_type.rb +10 -0
  37. data/lib/valkey/request_type.rb +436 -0
  38. data/lib/valkey/response_type.rb +20 -0
  39. data/lib/valkey/utils.rb +253 -0
  40. data/lib/valkey/version.rb +5 -0
  41. data/lib/valkey.rb +551 -0
  42. metadata +119 -0
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: command_request.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n\x15\x63ommand_request.proto\x12\x0f\x63ommand_request\"M\n\x0bSlotIdRoute\x12-\n\tslot_type\x18\x01 \x01(\x0e\x32\x1a.command_request.SlotTypes\x12\x0f\n\x07slot_id\x18\x02 \x01(\x05\"O\n\x0cSlotKeyRoute\x12-\n\tslot_type\x18\x01 \x01(\x0e\x32\x1a.command_request.SlotTypes\x12\x10\n\x08slot_key\x18\x02 \x01(\t\",\n\x0e\x42yAddressRoute\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\x05\"\xf6\x01\n\x06Routes\x12\x36\n\rsimple_routes\x18\x01 \x01(\x0e\x32\x1d.command_request.SimpleRoutesH\x00\x12\x37\n\x0eslot_key_route\x18\x02 \x01(\x0b\x32\x1d.command_request.SlotKeyRouteH\x00\x12\x35\n\rslot_id_route\x18\x03 \x01(\x0b\x32\x1c.command_request.SlotIdRouteH\x00\x12;\n\x10\x62y_address_route\x18\x04 \x01(\x0b\x32\x1f.command_request.ByAddressRouteH\x00\x42\x07\n\x05value\"\xb6\x01\n\x07\x43ommand\x12\x32\n\x0crequest_type\x18\x01 \x01(\x0e\x32\x1c.command_request.RequestType\x12\x38\n\nargs_array\x18\x02 \x01(\x0b\x32\".command_request.Command.ArgsArrayH\x00\x12\x1a\n\x10\x61rgs_vec_pointer\x18\x03 \x01(\x04H\x00\x1a\x19\n\tArgsArray\x12\x0c\n\x04\x61rgs\x18\x01 \x03(\x0c\x42\x06\n\x04\x61rgs\"\x80\x01\n\x18ScriptInvocationPointers\x12\x0c\n\x04hash\x18\x01 \x01(\t\x12\x19\n\x0ckeys_pointer\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x19\n\x0c\x61rgs_pointer\x18\x03 \x01(\x04H\x01\x88\x01\x01\x42\x0f\n\r_keys_pointerB\x0f\n\r_args_pointer\"<\n\x10ScriptInvocation\x12\x0c\n\x04hash\x18\x01 \x01(\t\x12\x0c\n\x04keys\x18\x02 \x03(\x0c\x12\x0c\n\x04\x61rgs\x18\x03 \x03(\x0c\"\x90\x02\n\x05\x42\x61tch\x12\x11\n\tis_atomic\x18\x01 \x01(\x08\x12*\n\x08\x63ommands\x18\x02 \x03(\x0b\x32\x18.command_request.Command\x12\x1b\n\x0eraise_on_error\x18\x03 \x01(\x08H\x00\x88\x01\x01\x12\x14\n\x07timeout\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1f\n\x12retry_server_error\x18\x05 \x01(\x08H\x02\x88\x01\x01\x12#\n\x16retry_connection_error\x18\x06 \x01(\x08H\x03\x88\x01\x01\x42\x11\n\x0f_raise_on_errorB\n\n\x08_timeoutB\x15\n\x13_retry_server_errorB\x19\n\x17_retry_connection_error\"\xb4\x01\n\x0b\x43lusterScan\x12\x0e\n\x06\x63ursor\x18\x01 \x01(\t\x12\x1a\n\rmatch_pattern\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\x12\n\x05\x63ount\x18\x03 \x01(\x03H\x01\x88\x01\x01\x12\x18\n\x0bobject_type\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x1f\n\x17\x61llow_non_covered_slots\x18\x05 \x01(\x08\x42\x10\n\x0e_match_patternB\x08\n\x06_countB\x0e\n\x0c_object_type\"V\n\x18UpdateConnectionPassword\x12\x15\n\x08password\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x16\n\x0eimmediate_auth\x18\x02 \x01(\x08\x42\x0b\n\t_password\"\x11\n\x0fRefreshIamToken\"\xbb\x04\n\x0e\x43ommandRequest\x12\x14\n\x0c\x63\x61llback_idx\x18\x01 \x01(\r\x12\x32\n\x0esingle_command\x18\x02 \x01(\x0b\x32\x18.command_request.CommandH\x00\x12\'\n\x05\x62\x61tch\x18\x03 \x01(\x0b\x32\x16.command_request.BatchH\x00\x12>\n\x11script_invocation\x18\x04 \x01(\x0b\x32!.command_request.ScriptInvocationH\x00\x12O\n\x1ascript_invocation_pointers\x18\x05 \x01(\x0b\x32).command_request.ScriptInvocationPointersH\x00\x12\x34\n\x0c\x63luster_scan\x18\x06 \x01(\x0b\x32\x1c.command_request.ClusterScanH\x00\x12O\n\x1aupdate_connection_password\x18\x07 \x01(\x0b\x32).command_request.UpdateConnectionPasswordH\x00\x12=\n\x11refresh_iam_token\x18\x08 \x01(\x0b\x32 .command_request.RefreshIamTokenH\x00\x12&\n\x05route\x18\t \x01(\x0b\x32\x17.command_request.Routes\x12\x1a\n\rroot_span_ptr\x18\n \x01(\x04H\x01\x88\x01\x01\x42\t\n\x07\x63ommandB\x10\n\x0e_root_span_ptr*:\n\x0cSimpleRoutes\x12\x0c\n\x08\x41llNodes\x10\x00\x12\x10\n\x0c\x41llPrimaries\x10\x01\x12\n\n\x06Random\x10\x02*%\n\tSlotTypes\x12\x0b\n\x07Primary\x10\x00\x12\x0b\n\x07Replica\x10\x01*\x9b\x32\n\x0bRequestType\x12\x12\n\x0eInvalidRequest\x10\x00\x12\x11\n\rCustomCommand\x10\x01\x12\x0c\n\x08\x42itCount\x10\x65\x12\x0c\n\x08\x42itField\x10\x66\x12\x14\n\x10\x42itFieldReadOnly\x10g\x12\t\n\x05\x42itOp\x10h\x12\n\n\x06\x42itPos\x10i\x12\n\n\x06GetBit\x10j\x12\n\n\x06SetBit\x10k\x12\x0b\n\x06\x41sking\x10\xc9\x01\x12\x14\n\x0f\x43lusterAddSlots\x10\xca\x01\x12\x19\n\x14\x43lusterAddSlotsRange\x10\xcb\x01\x12\x15\n\x10\x43lusterBumpEpoch\x10\xcc\x01\x12\x1f\n\x1a\x43lusterCountFailureReports\x10\xcd\x01\x12\x1b\n\x16\x43lusterCountKeysInSlot\x10\xce\x01\x12\x14\n\x0f\x43lusterDelSlots\x10\xcf\x01\x12\x19\n\x14\x43lusterDelSlotsRange\x10\xd0\x01\x12\x14\n\x0f\x43lusterFailover\x10\xd1\x01\x12\x16\n\x11\x43lusterFlushSlots\x10\xd2\x01\x12\x12\n\rClusterForget\x10\xd3\x01\x12\x19\n\x14\x43lusterGetKeysInSlot\x10\xd4\x01\x12\x10\n\x0b\x43lusterInfo\x10\xd5\x01\x12\x13\n\x0e\x43lusterKeySlot\x10\xd6\x01\x12\x11\n\x0c\x43lusterLinks\x10\xd7\x01\x12\x10\n\x0b\x43lusterMeet\x10\xd8\x01\x12\x10\n\x0b\x43lusterMyId\x10\xd9\x01\x12\x15\n\x10\x43lusterMyShardId\x10\xda\x01\x12\x11\n\x0c\x43lusterNodes\x10\xdb\x01\x12\x14\n\x0f\x43lusterReplicas\x10\xdc\x01\x12\x15\n\x10\x43lusterReplicate\x10\xdd\x01\x12\x11\n\x0c\x43lusterReset\x10\xde\x01\x12\x16\n\x11\x43lusterSaveConfig\x10\xdf\x01\x12\x1a\n\x15\x43lusterSetConfigEpoch\x10\xe0\x01\x12\x13\n\x0e\x43lusterSetslot\x10\xe1\x01\x12\x12\n\rClusterShards\x10\xe2\x01\x12\x12\n\rClusterSlaves\x10\xe3\x01\x12\x11\n\x0c\x43lusterSlots\x10\xe4\x01\x12\r\n\x08ReadOnly\x10\xe5\x01\x12\x0e\n\tReadWrite\x10\xe6\x01\x12\t\n\x04\x41uth\x10\xad\x02\x12\x12\n\rClientCaching\x10\xae\x02\x12\x12\n\rClientGetName\x10\xaf\x02\x12\x13\n\x0e\x43lientGetRedir\x10\xb0\x02\x12\r\n\x08\x43lientId\x10\xb1\x02\x12\x0f\n\nClientInfo\x10\xb2\x02\x12\x15\n\x10\x43lientKillSimple\x10\xb3\x02\x12\x0f\n\nClientKill\x10\xb4\x02\x12\x0f\n\nClientList\x10\xb5\x02\x12\x12\n\rClientNoEvict\x10\xb6\x02\x12\x12\n\rClientNoTouch\x10\xb7\x02\x12\x10\n\x0b\x43lientPause\x10\xb8\x02\x12\x10\n\x0b\x43lientReply\x10\xb9\x02\x12\x12\n\rClientSetInfo\x10\xba\x02\x12\x12\n\rClientSetName\x10\xbb\x02\x12\x13\n\x0e\x43lientTracking\x10\xbc\x02\x12\x17\n\x12\x43lientTrackingInfo\x10\xbd\x02\x12\x12\n\rClientUnblock\x10\xbe\x02\x12\x12\n\rClientUnpause\x10\xbf\x02\x12\t\n\x04\x45\x63ho\x10\xc0\x02\x12\n\n\x05Hello\x10\xc1\x02\x12\t\n\x04Ping\x10\xc2\x02\x12\t\n\x04Quit\x10\xc3\x02\x12\n\n\x05Reset\x10\xc4\x02\x12\x0b\n\x06Select\x10\xc5\x02\x12\t\n\x04\x43opy\x10\x91\x03\x12\x08\n\x03\x44\x65l\x10\x92\x03\x12\t\n\x04\x44ump\x10\x93\x03\x12\x0b\n\x06\x45xists\x10\x94\x03\x12\x0b\n\x06\x45xpire\x10\x95\x03\x12\r\n\x08\x45xpireAt\x10\x96\x03\x12\x0f\n\nExpireTime\x10\x97\x03\x12\t\n\x04Keys\x10\x98\x03\x12\x0c\n\x07Migrate\x10\x99\x03\x12\t\n\x04Move\x10\x9a\x03\x12\x13\n\x0eObjectEncoding\x10\x9b\x03\x12\x0f\n\nObjectFreq\x10\x9c\x03\x12\x13\n\x0eObjectIdleTime\x10\x9d\x03\x12\x13\n\x0eObjectRefCount\x10\x9e\x03\x12\x0c\n\x07Persist\x10\x9f\x03\x12\x0c\n\x07PExpire\x10\xa0\x03\x12\x0e\n\tPExpireAt\x10\xa1\x03\x12\x10\n\x0bPExpireTime\x10\xa2\x03\x12\t\n\x04PTTL\x10\xa3\x03\x12\x0e\n\tRandomKey\x10\xa4\x03\x12\x0b\n\x06Rename\x10\xa5\x03\x12\r\n\x08RenameNX\x10\xa6\x03\x12\x0c\n\x07Restore\x10\xa7\x03\x12\t\n\x04Scan\x10\xa8\x03\x12\t\n\x04Sort\x10\xa9\x03\x12\x11\n\x0cSortReadOnly\x10\xaa\x03\x12\n\n\x05Touch\x10\xab\x03\x12\x08\n\x03TTL\x10\xac\x03\x12\t\n\x04Type\x10\xad\x03\x12\x0b\n\x06Unlink\x10\xae\x03\x12\t\n\x04Wait\x10\xaf\x03\x12\x0c\n\x07WaitAof\x10\xb0\x03\x12\x0b\n\x06GeoAdd\x10\xf5\x03\x12\x0c\n\x07GeoDist\x10\xf6\x03\x12\x0c\n\x07GeoHash\x10\xf7\x03\x12\x0b\n\x06GeoPos\x10\xf8\x03\x12\x0e\n\tGeoRadius\x10\xf9\x03\x12\x16\n\x11GeoRadiusReadOnly\x10\xfa\x03\x12\x16\n\x11GeoRadiusByMember\x10\xfb\x03\x12\x1e\n\x19GeoRadiusByMemberReadOnly\x10\xfc\x03\x12\x0e\n\tGeoSearch\x10\xfd\x03\x12\x13\n\x0eGeoSearchStore\x10\xfe\x03\x12\t\n\x04HDel\x10\xd9\x04\x12\x0c\n\x07HExists\x10\xda\x04\x12\t\n\x04HGet\x10\xdb\x04\x12\x0c\n\x07HGetAll\x10\xdc\x04\x12\x0c\n\x07HIncrBy\x10\xdd\x04\x12\x11\n\x0cHIncrByFloat\x10\xde\x04\x12\n\n\x05HKeys\x10\xdf\x04\x12\t\n\x04HLen\x10\xe0\x04\x12\n\n\x05HMGet\x10\xe1\x04\x12\n\n\x05HMSet\x10\xe2\x04\x12\x0f\n\nHRandField\x10\xe3\x04\x12\n\n\x05HScan\x10\xe4\x04\x12\t\n\x04HSet\x10\xe5\x04\x12\x0b\n\x06HSetNX\x10\xe6\x04\x12\x0c\n\x07HStrlen\x10\xe7\x04\x12\n\n\x05HVals\x10\xe8\x04\x12\x0b\n\x06HSetEx\x10\xe9\x04\x12\x0b\n\x06HGetEx\x10\xea\x04\x12\x0c\n\x07HExpire\x10\xeb\x04\x12\x0e\n\tHExpireAt\x10\xec\x04\x12\r\n\x08HPExpire\x10\xed\x04\x12\x0f\n\nHPExpireAt\x10\xee\x04\x12\r\n\x08HPersist\x10\xef\x04\x12\t\n\x04HTtl\x10\xf0\x04\x12\n\n\x05HPTtl\x10\xf1\x04\x12\x10\n\x0bHExpireTime\x10\xf2\x04\x12\x11\n\x0cHPExpireTime\x10\xf3\x04\x12\n\n\x05PfAdd\x10\xbd\x05\x12\x0c\n\x07PfCount\x10\xbe\x05\x12\x0c\n\x07PfMerge\x10\xbf\x05\x12\x0b\n\x06\x42LMove\x10\xa1\x06\x12\x0b\n\x06\x42LMPop\x10\xa2\x06\x12\n\n\x05\x42LPop\x10\xa3\x06\x12\n\n\x05\x42RPop\x10\xa4\x06\x12\x0f\n\nBRPopLPush\x10\xa5\x06\x12\x0b\n\x06LIndex\x10\xa6\x06\x12\x0c\n\x07LInsert\x10\xa7\x06\x12\t\n\x04LLen\x10\xa8\x06\x12\n\n\x05LMove\x10\xa9\x06\x12\n\n\x05LMPop\x10\xaa\x06\x12\t\n\x04LPop\x10\xab\x06\x12\t\n\x04LPos\x10\xac\x06\x12\n\n\x05LPush\x10\xad\x06\x12\x0b\n\x06LPushX\x10\xae\x06\x12\x0b\n\x06LRange\x10\xaf\x06\x12\t\n\x04LRem\x10\xb0\x06\x12\t\n\x04LSet\x10\xb1\x06\x12\n\n\x05LTrim\x10\xb2\x06\x12\t\n\x04RPop\x10\xb3\x06\x12\x0e\n\tRPopLPush\x10\xb4\x06\x12\n\n\x05RPush\x10\xb5\x06\x12\x0b\n\x06RPushX\x10\xb6\x06\x12\x0f\n\nPSubscribe\x10\x85\x07\x12\x0c\n\x07Publish\x10\x86\x07\x12\x13\n\x0ePubSubChannels\x10\x87\x07\x12\x11\n\x0cPubSubNumPat\x10\x88\x07\x12\x11\n\x0cPubSubNumSub\x10\x89\x07\x12\x18\n\x13PubSubShardChannels\x10\x8a\x07\x12\x16\n\x11PubSubShardNumSub\x10\x8b\x07\x12\x11\n\x0cPUnsubscribe\x10\x8c\x07\x12\r\n\x08SPublish\x10\x8d\x07\x12\x0f\n\nSSubscribe\x10\x8e\x07\x12\x0e\n\tSubscribe\x10\x8f\x07\x12\x11\n\x0cSUnsubscribe\x10\x90\x07\x12\x10\n\x0bUnsubscribe\x10\x91\x07\x12\x16\n\x11SubscribeBlocking\x10\x92\x07\x12\x18\n\x13UnsubscribeBlocking\x10\x93\x07\x12\x17\n\x12PSubscribeBlocking\x10\x94\x07\x12\x19\n\x14PUnsubscribeBlocking\x10\x95\x07\x12\x17\n\x12SSubscribeBlocking\x10\x96\x07\x12\x19\n\x14SUnsubscribeBlocking\x10\x97\x07\x12\x15\n\x10GetSubscriptions\x10\x98\x07\x12\t\n\x04\x45val\x10\xe9\x07\x12\x11\n\x0c\x45valReadOnly\x10\xea\x07\x12\x0c\n\x07\x45valSha\x10\xeb\x07\x12\x14\n\x0f\x45valShaReadOnly\x10\xec\x07\x12\n\n\x05\x46\x43\x61ll\x10\xed\x07\x12\x12\n\rFCallReadOnly\x10\xee\x07\x12\x13\n\x0e\x46unctionDelete\x10\xef\x07\x12\x11\n\x0c\x46unctionDump\x10\xf0\x07\x12\x12\n\rFunctionFlush\x10\xf1\x07\x12\x11\n\x0c\x46unctionKill\x10\xf2\x07\x12\x11\n\x0c\x46unctionList\x10\xf3\x07\x12\x11\n\x0c\x46unctionLoad\x10\xf4\x07\x12\x14\n\x0f\x46unctionRestore\x10\xf5\x07\x12\x12\n\rFunctionStats\x10\xf6\x07\x12\x10\n\x0bScriptDebug\x10\xf7\x07\x12\x11\n\x0cScriptExists\x10\xf8\x07\x12\x10\n\x0bScriptFlush\x10\xf9\x07\x12\x0f\n\nScriptKill\x10\xfa\x07\x12\x0f\n\nScriptLoad\x10\xfb\x07\x12\x0f\n\nScriptShow\x10\xfc\x07\x12\x0b\n\x06\x41\x63lCat\x10\xcd\x08\x12\x0f\n\nAclDelUser\x10\xce\x08\x12\x0e\n\tAclDryRun\x10\xcf\x08\x12\x0f\n\nAclGenPass\x10\xd0\x08\x12\x0f\n\nAclGetUser\x10\xd1\x08\x12\x0c\n\x07\x41\x63lList\x10\xd2\x08\x12\x0c\n\x07\x41\x63lLoad\x10\xd3\x08\x12\x0b\n\x06\x41\x63lLog\x10\xd4\x08\x12\x0c\n\x07\x41\x63lSave\x10\xd5\x08\x12\x0f\n\nAclSetSser\x10\xd6\x08\x12\r\n\x08\x41\x63lUsers\x10\xd7\x08\x12\x0e\n\tAclWhoami\x10\xd8\x08\x12\x11\n\x0c\x42gRewriteAof\x10\xd9\x08\x12\x0b\n\x06\x42gSave\x10\xda\x08\x12\r\n\x08\x43ommand_\x10\xdb\x08\x12\x11\n\x0c\x43ommandCount\x10\xdc\x08\x12\x10\n\x0b\x43ommandDocs\x10\xdd\x08\x12\x13\n\x0e\x43ommandGetKeys\x10\xde\x08\x12\x1b\n\x16\x43ommandGetKeysAndFlags\x10\xdf\x08\x12\x10\n\x0b\x43ommandInfo\x10\xe0\x08\x12\x10\n\x0b\x43ommandList\x10\xe1\x08\x12\x0e\n\tConfigGet\x10\xe2\x08\x12\x14\n\x0f\x43onfigResetStat\x10\xe3\x08\x12\x12\n\rConfigRewrite\x10\xe4\x08\x12\x0e\n\tConfigSet\x10\xe5\x08\x12\x0b\n\x06\x44\x42Size\x10\xe6\x08\x12\r\n\x08\x46\x61ilOver\x10\xe7\x08\x12\r\n\x08\x46lushAll\x10\xe8\x08\x12\x0c\n\x07\x46lushDB\x10\xe9\x08\x12\t\n\x04Info\x10\xea\x08\x12\r\n\x08LastSave\x10\xeb\x08\x12\x12\n\rLatencyDoctor\x10\xec\x08\x12\x11\n\x0cLatencyGraph\x10\xed\x08\x12\x15\n\x10LatencyHistogram\x10\xee\x08\x12\x13\n\x0eLatencyHistory\x10\xef\x08\x12\x12\n\rLatencyLatest\x10\xf0\x08\x12\x11\n\x0cLatencyReset\x10\xf1\x08\x12\x0b\n\x06Lolwut\x10\xf2\x08\x12\x11\n\x0cMemoryDoctor\x10\xf3\x08\x12\x16\n\x11MemoryMallocStats\x10\xf4\x08\x12\x10\n\x0bMemoryPurge\x10\xf5\x08\x12\x10\n\x0bMemoryStats\x10\xf6\x08\x12\x10\n\x0bMemoryUsage\x10\xf7\x08\x12\x0f\n\nModuleList\x10\xf8\x08\x12\x0f\n\nModuleLoad\x10\xf9\x08\x12\x11\n\x0cModuleLoadEx\x10\xfa\x08\x12\x11\n\x0cModuleUnload\x10\xfb\x08\x12\x0c\n\x07Monitor\x10\xfc\x08\x12\n\n\x05PSync\x10\xfd\x08\x12\r\n\x08ReplConf\x10\xfe\x08\x12\x0e\n\tReplicaOf\x10\xff\x08\x12\x12\n\rRestoreAsking\x10\x80\t\x12\t\n\x04Role\x10\x81\t\x12\t\n\x04Save\x10\x82\t\x12\r\n\x08ShutDown\x10\x83\t\x12\x0c\n\x07SlaveOf\x10\x84\t\x12\x0f\n\nSlowLogGet\x10\x85\t\x12\x0f\n\nSlowLogLen\x10\x86\t\x12\x11\n\x0cSlowLogReset\x10\x87\t\x12\x0b\n\x06SwapDb\x10\x88\t\x12\t\n\x04Sync\x10\x89\t\x12\t\n\x04Time\x10\x8a\t\x12\t\n\x04SAdd\x10\xb1\t\x12\n\n\x05SCard\x10\xb2\t\x12\n\n\x05SDiff\x10\xb3\t\x12\x0f\n\nSDiffStore\x10\xb4\t\x12\x0b\n\x06SInter\x10\xb5\t\x12\x0f\n\nSInterCard\x10\xb6\t\x12\x10\n\x0bSInterStore\x10\xb7\t\x12\x0e\n\tSIsMember\x10\xb8\t\x12\r\n\x08SMembers\x10\xb9\t\x12\x0f\n\nSMIsMember\x10\xba\t\x12\n\n\x05SMove\x10\xbb\t\x12\t\n\x04SPop\x10\xbc\t\x12\x10\n\x0bSRandMember\x10\xbd\t\x12\t\n\x04SRem\x10\xbe\t\x12\n\n\x05SScan\x10\xbf\t\x12\x0b\n\x06SUnion\x10\xc0\t\x12\x10\n\x0bSUnionStore\x10\xc1\t\x12\x0b\n\x06\x42ZMPop\x10\x95\n\x12\r\n\x08\x42ZPopMax\x10\x96\n\x12\r\n\x08\x42ZPopMin\x10\x97\n\x12\t\n\x04ZAdd\x10\x98\n\x12\n\n\x05ZCard\x10\x99\n\x12\x0b\n\x06ZCount\x10\x9a\n\x12\n\n\x05ZDiff\x10\x9b\n\x12\x0f\n\nZDiffStore\x10\x9c\n\x12\x0c\n\x07ZIncrBy\x10\x9d\n\x12\x0b\n\x06ZInter\x10\x9e\n\x12\x0f\n\nZInterCard\x10\x9f\n\x12\x10\n\x0bZInterStore\x10\xa0\n\x12\x0e\n\tZLexCount\x10\xa1\n\x12\n\n\x05ZMPop\x10\xa2\n\x12\x0c\n\x07ZMScore\x10\xa3\n\x12\x0c\n\x07ZPopMax\x10\xa4\n\x12\x0c\n\x07ZPopMin\x10\xa5\n\x12\x10\n\x0bZRandMember\x10\xa6\n\x12\x0b\n\x06ZRange\x10\xa7\n\x12\x10\n\x0bZRangeByLex\x10\xa8\n\x12\x12\n\rZRangeByScore\x10\xa9\n\x12\x10\n\x0bZRangeStore\x10\xaa\n\x12\n\n\x05ZRank\x10\xab\n\x12\t\n\x04ZRem\x10\xac\n\x12\x13\n\x0eZRemRangeByLex\x10\xad\n\x12\x14\n\x0fZRemRangeByRank\x10\xae\n\x12\x15\n\x10ZRemRangeByScore\x10\xaf\n\x12\x0e\n\tZRevRange\x10\xb0\n\x12\x13\n\x0eZRevRangeByLex\x10\xb1\n\x12\x15\n\x10ZRevRangeByScore\x10\xb2\n\x12\r\n\x08ZRevRank\x10\xb3\n\x12\n\n\x05ZScan\x10\xb4\n\x12\x0b\n\x06ZScore\x10\xb5\n\x12\x0b\n\x06ZUnion\x10\xb6\n\x12\x10\n\x0bZUnionStore\x10\xb7\n\x12\t\n\x04XAck\x10\xf9\n\x12\t\n\x04XAdd\x10\xfa\n\x12\x0f\n\nXAutoClaim\x10\xfb\n\x12\x0b\n\x06XClaim\x10\xfc\n\x12\t\n\x04XDel\x10\xfd\n\x12\x11\n\x0cXGroupCreate\x10\xfe\n\x12\x19\n\x14XGroupCreateConsumer\x10\xff\n\x12\x16\n\x11XGroupDelConsumer\x10\x80\x0b\x12\x12\n\rXGroupDestroy\x10\x81\x0b\x12\x10\n\x0bXGroupSetId\x10\x82\x0b\x12\x13\n\x0eXInfoConsumers\x10\x83\x0b\x12\x10\n\x0bXInfoGroups\x10\x84\x0b\x12\x10\n\x0bXInfoStream\x10\x85\x0b\x12\t\n\x04XLen\x10\x86\x0b\x12\r\n\x08XPending\x10\x87\x0b\x12\x0b\n\x06XRange\x10\x88\x0b\x12\n\n\x05XRead\x10\x89\x0b\x12\x0f\n\nXReadGroup\x10\x8a\x0b\x12\x0e\n\tXRevRange\x10\x8b\x0b\x12\x0b\n\x06XSetId\x10\x8c\x0b\x12\n\n\x05XTrim\x10\x8d\x0b\x12\x0b\n\x06\x41ppend\x10\xdd\x0b\x12\t\n\x04\x44\x65\x63r\x10\xde\x0b\x12\x0b\n\x06\x44\x65\x63rBy\x10\xdf\x0b\x12\x08\n\x03Get\x10\xe0\x0b\x12\x0b\n\x06GetDel\x10\xe1\x0b\x12\n\n\x05GetEx\x10\xe2\x0b\x12\r\n\x08GetRange\x10\xe3\x0b\x12\x0b\n\x06GetSet\x10\xe4\x0b\x12\t\n\x04Incr\x10\xe5\x0b\x12\x0b\n\x06IncrBy\x10\xe6\x0b\x12\x10\n\x0bIncrByFloat\x10\xe7\x0b\x12\x08\n\x03LCS\x10\xe8\x0b\x12\t\n\x04MGet\x10\xe9\x0b\x12\t\n\x04MSet\x10\xea\x0b\x12\x0b\n\x06MSetNX\x10\xeb\x0b\x12\x0b\n\x06PSetEx\x10\xec\x0b\x12\x08\n\x03Set\x10\xed\x0b\x12\n\n\x05SetEx\x10\xee\x0b\x12\n\n\x05SetNX\x10\xef\x0b\x12\r\n\x08SetRange\x10\xf0\x0b\x12\x0b\n\x06Strlen\x10\xf1\x0b\x12\x0b\n\x06Substr\x10\xf2\x0b\x12\x0c\n\x07\x44iscard\x10\xc1\x0c\x12\t\n\x04\x45xec\x10\xc2\x0c\x12\n\n\x05Multi\x10\xc3\x0c\x12\x0c\n\x07UnWatch\x10\xc4\x0c\x12\n\n\x05Watch\x10\xc5\x0c\x12\x12\n\rJsonArrAppend\x10\xd1\x0f\x12\x11\n\x0cJsonArrIndex\x10\xd2\x0f\x12\x12\n\rJsonArrInsert\x10\xd3\x0f\x12\x0f\n\nJsonArrLen\x10\xd4\x0f\x12\x0f\n\nJsonArrPop\x10\xd5\x0f\x12\x10\n\x0bJsonArrTrim\x10\xd6\x0f\x12\x0e\n\tJsonClear\x10\xd7\x0f\x12\x0e\n\tJsonDebug\x10\xd8\x0f\x12\x0c\n\x07JsonDel\x10\xd9\x0f\x12\x0f\n\nJsonForget\x10\xda\x0f\x12\x0c\n\x07JsonGet\x10\xdb\x0f\x12\r\n\x08JsonMGet\x10\xdc\x0f\x12\x12\n\rJsonNumIncrBy\x10\xdd\x0f\x12\x12\n\rJsonNumMultBy\x10\xde\x0f\x12\x10\n\x0bJsonObjKeys\x10\xdf\x0f\x12\x0f\n\nJsonObjLen\x10\xe0\x0f\x12\r\n\x08JsonResp\x10\xe1\x0f\x12\x0c\n\x07JsonSet\x10\xe2\x0f\x12\x12\n\rJsonStrAppend\x10\xe3\x0f\x12\x0f\n\nJsonStrLen\x10\xe4\x0f\x12\x0f\n\nJsonToggle\x10\xe5\x0f\x12\r\n\x08JsonType\x10\xe6\x0f\x12\x0b\n\x06\x46tList\x10\xb5\x10\x12\x10\n\x0b\x46tAggregate\x10\xb6\x10\x12\x0f\n\nFtAliasAdd\x10\xb7\x10\x12\x0f\n\nFtAliasDel\x10\xb8\x10\x12\x10\n\x0b\x46tAliasList\x10\xb9\x10\x12\x12\n\rFtAliasUpdate\x10\xba\x10\x12\r\n\x08\x46tCreate\x10\xbb\x10\x12\x10\n\x0b\x46tDropIndex\x10\xbc\x10\x12\x0e\n\tFtExplain\x10\xbd\x10\x12\x11\n\x0c\x46tExplainCli\x10\xbe\x10\x12\x0b\n\x06\x46tInfo\x10\xbf\x10\x12\x0e\n\tFtProfile\x10\xc0\x10\x12\r\n\x08\x46tSearch\x10\xc1\x10\x62\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
+ end
29
+ end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
32
+ end
33
+
34
+ module CommandRequest
35
+ SlotIdRoute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("command_request.SlotIdRoute").msgclass
36
+ SlotKeyRoute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("command_request.SlotKeyRoute").msgclass
37
+ ByAddressRoute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("command_request.ByAddressRoute").msgclass
38
+ Routes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("command_request.Routes").msgclass
39
+ Command = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("command_request.Command").msgclass
40
+ Command::ArgsArray = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("command_request.Command.ArgsArray").msgclass
41
+ ScriptInvocationPointers = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("command_request.ScriptInvocationPointers").msgclass
42
+ ScriptInvocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("command_request.ScriptInvocation").msgclass
43
+ Batch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("command_request.Batch").msgclass
44
+ ClusterScan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("command_request.ClusterScan").msgclass
45
+ UpdateConnectionPassword = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("command_request.UpdateConnectionPassword").msgclass
46
+ RefreshIamToken = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("command_request.RefreshIamToken").msgclass
47
+ CommandRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("command_request.CommandRequest").msgclass
48
+ SimpleRoutes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("command_request.SimpleRoutes").enummodule
49
+ SlotTypes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("command_request.SlotTypes").enummodule
50
+ RequestType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("command_request.RequestType").enummodule
51
+ end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: connection_request.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n\x18\x63onnection_request.proto\x12\x12\x63onnection_request\")\n\x0bNodeAddress\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\r\"\x8e\x01\n\x12\x41uthenticationInfo\x12\x10\n\x08password\x18\x01 \x01(\t\x12\x10\n\x08username\x18\x02 \x01(\t\x12@\n\x0fiam_credentials\x18\x03 \x01(\x0b\x32\".connection_request.IamCredentialsH\x00\x88\x01\x01\x42\x12\n\x10_iam_credentials\"\xb1\x01\n\x0eIamCredentials\x12\x14\n\x0c\x63luster_name\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x02 \x01(\t\x12\x35\n\x0cservice_type\x18\x03 \x01(\x0e\x32\x1f.connection_request.ServiceType\x12%\n\x18refresh_interval_seconds\x18\x04 \x01(\rH\x00\x88\x01\x01\x42\x1b\n\x19_refresh_interval_seconds\"7\n\x1cPeriodicChecksManualInterval\x12\x17\n\x0f\x64uration_in_sec\x18\x01 \x01(\r\"\x18\n\x16PeriodicChecksDisabled\"\xb1\x01\n\x11\x43ompressionConfig\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x37\n\x07\x62\x61\x63kend\x18\x02 \x01(\x0e\x32&.connection_request.CompressionBackend\x12\x1e\n\x11\x63ompression_level\x18\x03 \x01(\x05H\x00\x88\x01\x01\x12\x1c\n\x14min_compression_size\x18\x04 \x01(\rB\x14\n\x12_compression_level\"8\n\x18PubSubChannelsOrPatterns\x12\x1c\n\x14\x63hannels_or_patterns\x18\x01 \x03(\x0c\"\xf1\x01\n\x13PubSubSubscriptions\x12k\n\x1c\x63hannels_or_patterns_by_type\x18\x01 \x03(\x0b\x32\x45.connection_request.PubSubSubscriptions.ChannelsOrPatternsByTypeEntry\x1am\n\x1d\x43hannelsOrPatternsByTypeEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.connection_request.PubSubChannelsOrPatterns:\x02\x38\x01\"\x9c\t\n\x11\x43onnectionRequest\x12\x32\n\taddresses\x18\x01 \x03(\x0b\x32\x1f.connection_request.NodeAddress\x12-\n\x08tls_mode\x18\x02 \x01(\x0e\x32\x1b.connection_request.TlsMode\x12\x1c\n\x14\x63luster_mode_enabled\x18\x03 \x01(\x08\x12\x17\n\x0frequest_timeout\x18\x04 \x01(\r\x12/\n\tread_from\x18\x05 \x01(\x0e\x32\x1c.connection_request.ReadFrom\x12N\n\x19\x63onnection_retry_strategy\x18\x06 \x01(\x0b\x32+.connection_request.ConnectionRetryStrategy\x12\x43\n\x13\x61uthentication_info\x18\x07 \x01(\x0b\x32&.connection_request.AuthenticationInfo\x12\x13\n\x0b\x64\x61tabase_id\x18\x08 \x01(\r\x12\x35\n\x08protocol\x18\t \x01(\x0e\x32#.connection_request.ProtocolVersion\x12\x13\n\x0b\x63lient_name\x18\n \x01(\t\x12[\n\x1fperiodic_checks_manual_interval\x18\x0b \x01(\x0b\x32\x30.connection_request.PeriodicChecksManualIntervalH\x00\x12N\n\x18periodic_checks_disabled\x18\x0c \x01(\x0b\x32*.connection_request.PeriodicChecksDisabledH\x00\x12\x45\n\x14pubsub_subscriptions\x18\r \x01(\x0b\x32\'.connection_request.PubSubSubscriptions\x12\x1f\n\x17inflight_requests_limit\x18\x0e \x01(\r\x12\x11\n\tclient_az\x18\x0f \x01(\t\x12\x1a\n\x12\x63onnection_timeout\x18\x10 \x01(\r\x12\x14\n\x0clazy_connect\x18\x11 \x01(\x08\x12+\n#refresh_topology_from_initial_nodes\x18\x12 \x01(\x08\x12\x10\n\x08lib_name\x18\x13 \x01(\t\x12\x12\n\nroot_certs\x18\x14 \x03(\x0c\x12\x46\n\x12\x63ompression_config\x18\x15 \x01(\x0b\x32%.connection_request.CompressionConfigH\x01\x88\x01\x01\x12\x13\n\x0b\x63lient_cert\x18\x16 \x01(\x0c\x12\x12\n\nclient_key\x18\x17 \x01(\x0c\x12\x18\n\x0btcp_nodelay\x18\x18 \x01(\x08H\x02\x88\x01\x01\x12.\n!pubsub_reconciliation_interval_ms\x18\x19 \x01(\rH\x03\x88\x01\x01\x42\x11\n\x0fperiodic_checksB\x15\n\x13_compression_configB\x0e\n\x0c_tcp_nodelayB$\n\"_pubsub_reconciliation_interval_ms\"\x8b\x01\n\x17\x43onnectionRetryStrategy\x12\x19\n\x11number_of_retries\x18\x01 \x01(\r\x12\x0e\n\x06\x66\x61\x63tor\x18\x02 \x01(\r\x12\x15\n\rexponent_base\x18\x03 \x01(\r\x12\x1b\n\x0ejitter_percent\x18\x04 \x01(\rH\x00\x88\x01\x01\x42\x11\n\x0f_jitter_percent*o\n\x08ReadFrom\x12\x0b\n\x07Primary\x10\x00\x12\x11\n\rPreferReplica\x10\x01\x12\x11\n\rLowestLatency\x10\x02\x12\x0e\n\nAZAffinity\x10\x03\x12 \n\x1c\x41ZAffinityReplicasAndPrimary\x10\x04*4\n\x07TlsMode\x12\t\n\x05NoTls\x10\x00\x12\r\n\tSecureTls\x10\x01\x12\x0f\n\x0bInsecureTls\x10\x02*,\n\x0bServiceType\x12\x0f\n\x0b\x45LASTICACHE\x10\x00\x12\x0c\n\x08MEMORYDB\x10\x01*\'\n\x0fProtocolVersion\x12\t\n\x05RESP3\x10\x00\x12\t\n\x05RESP2\x10\x01*8\n\x11PubSubChannelType\x12\t\n\x05\x45xact\x10\x00\x12\x0b\n\x07Pattern\x10\x01\x12\x0b\n\x07Sharded\x10\x02*\'\n\x12\x43ompressionBackend\x12\x08\n\x04ZSTD\x10\x00\x12\x07\n\x03LZ4\x10\x01\x62\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
+ end
29
+ end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
32
+ end
33
+
34
+ module ConnectionRequest
35
+ NodeAddress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("connection_request.NodeAddress").msgclass
36
+ AuthenticationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("connection_request.AuthenticationInfo").msgclass
37
+ IamCredentials = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("connection_request.IamCredentials").msgclass
38
+ PeriodicChecksManualInterval = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("connection_request.PeriodicChecksManualInterval").msgclass
39
+ PeriodicChecksDisabled = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("connection_request.PeriodicChecksDisabled").msgclass
40
+ CompressionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("connection_request.CompressionConfig").msgclass
41
+ PubSubChannelsOrPatterns = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("connection_request.PubSubChannelsOrPatterns").msgclass
42
+ PubSubSubscriptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("connection_request.PubSubSubscriptions").msgclass
43
+ ConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("connection_request.ConnectionRequest").msgclass
44
+ ConnectionRetryStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("connection_request.ConnectionRetryStrategy").msgclass
45
+ ReadFrom = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("connection_request.ReadFrom").enummodule
46
+ TlsMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("connection_request.TlsMode").enummodule
47
+ ServiceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("connection_request.ServiceType").enummodule
48
+ ProtocolVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("connection_request.ProtocolVersion").enummodule
49
+ PubSubChannelType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("connection_request.PubSubChannelType").enummodule
50
+ CompressionBackend = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("connection_request.CompressionBackend").enummodule
51
+ end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: response.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n\x0eresponse.proto\x12\x08response\"I\n\x0cRequestError\x12(\n\x04type\x18\x01 \x01(\x0e\x32\x1a.response.RequestErrorType\x12\x0f\n\x07message\x18\x02 \x01(\t\"\x83\x02\n\x08Response\x12\x14\n\x0c\x63\x61llback_idx\x18\x01 \x01(\r\x12\x16\n\x0cresp_pointer\x18\x02 \x01(\x04H\x00\x12\x37\n\x11\x63onstant_response\x18\x03 \x01(\x0e\x32\x1a.response.ConstantResponseH\x00\x12/\n\rrequest_error\x18\x04 \x01(\x0b\x32\x16.response.RequestErrorH\x00\x12\x17\n\rclosing_error\x18\x05 \x01(\tH\x00\x12\x0f\n\x07is_push\x18\x06 \x01(\x08\x12\x1a\n\rroot_span_ptr\x18\x07 \x01(\x04H\x01\x88\x01\x01\x42\x07\n\x05valueB\x10\n\x0e_root_span_ptr*O\n\x10RequestErrorType\x12\x0f\n\x0bUnspecified\x10\x00\x12\r\n\tExecAbort\x10\x01\x12\x0b\n\x07Timeout\x10\x02\x12\x0e\n\nDisconnect\x10\x03*\x1a\n\x10\x43onstantResponse\x12\x06\n\x02OK\x10\x00\x62\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
+ end
29
+ end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
32
+ end
33
+
34
+ module Response
35
+ RequestError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("response.RequestError").msgclass
36
+ Response = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("response.Response").msgclass
37
+ RequestErrorType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("response.RequestErrorType").enummodule
38
+ ConstantResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("response.ConstantResponse").enummodule
39
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Valkey
4
+ module PubSubCallback
5
+ def pubsub_callback(_client_ptr, kind, msg_ptr, msg_len, chan_ptr, chan_len, pat_ptr, pat_len)
6
+ puts "PubSub received kind=#{kind}, message=#{msg_ptr.read_string(msg_len)}" \
7
+ ", channel=#{chan_ptr.read_string(chan_len)}, pattern=#{pat_ptr.read_string(pat_len)}"
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Valkey
4
+ module RequestErrorType
5
+ UNSPECIFIED = 0
6
+ EXECABORT = 1
7
+ TIMEOUT = 2
8
+ DISCONNECT = 3
9
+ end
10
+ end
@@ -0,0 +1,436 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Valkey
4
+ #
5
+ # this module defines constants for request types used in Valkey.
6
+ # Each constant represents a specific command or operation that can be performed.
7
+ #
8
+ module RequestType
9
+ INVALID_REQUEST = 0
10
+ CUSTOM_COMMAND = 1
11
+
12
+ # Bitmap commands
13
+ BIT_COUNT = 101
14
+ BIT_FIELD = 102
15
+ BIT_FIELD_READ_ONLY = 103
16
+ BIT_OP = 104
17
+ BIT_POS = 105
18
+ GET_BIT = 106
19
+ SET_BIT = 107
20
+
21
+ # Cluster commands
22
+ ASKING = 201
23
+ CLUSTER_ADD_SLOTS = 202
24
+ CLUSTER_ADD_SLOTS_RANGE = 203
25
+ CLUSTER_BUMP_EPOCH = 204
26
+ CLUSTER_COUNT_FAILURE_REPORTS = 205
27
+ CLUSTER_COUNT_KEYS_IN_SLOT = 206
28
+ CLUSTER_DEL_SLOTS = 207
29
+ CLUSTER_DEL_SLOTS_RANGE = 208
30
+ CLUSTER_FAILOVER = 209
31
+ CLUSTER_FLUSH_SLOTS = 210
32
+ CLUSTER_FORGET = 211
33
+ CLUSTER_GET_KEYS_IN_SLOT = 212
34
+ CLUSTER_INFO = 213
35
+ CLUSTER_KEY_SLOT = 214
36
+ CLUSTER_LINKS = 215
37
+ CLUSTER_MEET = 216
38
+ CLUSTER_MY_ID = 217
39
+ CLUSTER_MY_SHARD_ID = 218
40
+ CLUSTER_NODES = 219
41
+ CLUSTER_REPLICAS = 220
42
+ CLUSTER_REPLICATE = 221
43
+ CLUSTER_RESET = 222
44
+ CLUSTER_SAVE_CONFIG = 223
45
+ CLUSTER_SET_CONFIG_EPOCH = 224
46
+ CLUSTER_SETSLOT = 225
47
+ CLUSTER_SHARDS = 226
48
+ CLUSTER_SLAVES = 227
49
+ CLUSTER_SLOTS = 228
50
+ READ_ONLY = 229
51
+ READ_WRITE = 230
52
+
53
+ # Connection Management commands
54
+ AUTH = 301
55
+ CLIENT_CACHING = 302
56
+ CLIENT_GET_NAME = 303
57
+ CLIENT_GET_REDIR = 304
58
+ CLIENT_ID = 305
59
+ CLIENT_INFO = 306
60
+ CLIENT_KILL_SIMPLE = 307
61
+ CLIENT_KILL = 308
62
+ CLIENT_LIST = 309
63
+ CLIENT_NO_EVICT = 310
64
+ CLIENT_NO_TOUCH = 311
65
+ CLIENT_PAUSE = 312
66
+ CLIENT_REPLY = 313
67
+ CLIENT_SET_INFO = 314
68
+ CLIENT_SET_NAME = 315
69
+ CLIENT_TRACKING = 316
70
+ CLIENT_TRACKING_INFO = 317
71
+ CLIENT_UNBLOCK = 318
72
+ CLIENT_UNPAUSE = 319
73
+ ECHO = 320
74
+ HELLO = 321
75
+ PING = 322
76
+ QUIT = 323 # deprecated in 7.2.0
77
+ RESET = 324
78
+ SELECT = 325
79
+
80
+ # Generic commands
81
+ COPY = 401
82
+ DEL = 402
83
+ DUMP = 403
84
+ EXISTS = 404
85
+ EXPIRE = 405
86
+ EXPIRE_AT = 406
87
+ EXPIRE_TIME = 407
88
+ KEYS = 408
89
+ MIGRATE = 409
90
+ MOVE = 410
91
+ OBJECT_ENCODING = 411
92
+ OBJECT_FREQ = 412
93
+ OBJECT_IDLE_TIME = 413
94
+ OBJECT_REF_COUNT = 414
95
+ PERSIST = 415
96
+ PEXPIRE = 416
97
+ PEXPIRE_AT = 417
98
+ PEXPIRE_TIME = 418
99
+ PTTL = 419
100
+ RANDOM_KEY = 420
101
+ RENAME = 421
102
+ RENAME_NX = 422
103
+ RESTORE = 423
104
+ SCAN = 424
105
+ SORT = 425
106
+ SORT_READ_ONLY = 426
107
+ TOUCH = 427
108
+ TTL = 428
109
+ TYPE = 429
110
+ UNLINK = 430
111
+ WAIT = 431
112
+ WAIT_AOF = 432
113
+
114
+ # Geospatial indices commands
115
+ GEO_ADD = 501
116
+ GEO_DIST = 502
117
+ GEO_HASH = 503
118
+ GEO_POS = 504
119
+ GEO_RADIUS = 505 # deprecated in 6.2.0
120
+ GEO_RADIUS_READ_ONLY = 506 # deprecated in 6.2.0
121
+ GEO_RADIUS_BY_MEMBER = 507 # deprecated in 6.2.0
122
+ GEO_RADIUS_BY_MEMBER_READ_ONLY = 508 # deprecated in 6.2.0
123
+ GEO_SEARCH = 509
124
+ GEO_SEARCH_STORE = 510
125
+
126
+ # Hash commands
127
+ HDEL = 601
128
+ HEXISTS = 602
129
+ HGET = 603
130
+ HGET_ALL = 604
131
+ HINCR_BY = 605
132
+ HINCR_BY_FLOAT = 606
133
+ HKEYS = 607
134
+ HLEN = 608
135
+ HMGET = 609
136
+ HMSET = 610
137
+ HRAND_FIELD = 611
138
+ HSCAN = 612
139
+ HSET = 613
140
+ HSET_NX = 614
141
+ HSTRLEN = 615
142
+ HVALS = 616
143
+ HSETEX = 617
144
+ HGETEX = 618
145
+ HEXPIRE = 619
146
+ HEXPIREAT = 620
147
+ HPEXPIRE = 621
148
+ HPEXPIREAT = 622
149
+ HPERSIST = 623
150
+ HTTL = 624
151
+ HPTTL = 625
152
+ HEXPIRETIME = 626
153
+ HPEXPIRETIME = 627
154
+
155
+ # HyperLogLog commands
156
+ PFADD = 701
157
+ PFCOUNT = 702
158
+ PFMERGE = 703
159
+
160
+ # List commands
161
+ BLMOVE = 801
162
+ BLMPOP = 802
163
+ BLPOP = 803
164
+ BRPOP = 804
165
+ BRPOPLPUSH = 805 # deprecated in 6.2.0
166
+ LINDEX = 806
167
+ LINSERT = 807
168
+ LLEN = 808
169
+ LMOVE = 809
170
+ LMPOP = 810
171
+ LPOP = 811
172
+ LPOS = 812
173
+ LPUSH = 813
174
+ LPUSHX = 814
175
+ LRANGE = 815
176
+ LREM = 816
177
+ LSET = 817
178
+ LTRIM = 818
179
+ RPOP = 819
180
+ RPOPLPUSH = 820 # deprecated in 6.2.0
181
+ RPUSH = 821
182
+ RPUSHX = 822
183
+
184
+ # Pub/Sub commands
185
+ PSUBSCRIBE = 901
186
+ PUBLISH = 902
187
+ PUBSUB_CHANNELS = 903
188
+ PUBSUB_NUM_PAT = 904
189
+ PUBSUB_NUM_SUB = 905
190
+ PUBSUB_SHARD_CHANNELS = 906
191
+ PUBSUB_SHARD_NUM_SUB = 907
192
+ PUNSUBSCRIBE = 908
193
+ SPUBLISH = 909
194
+ SSUBSCRIBE = 910
195
+ SUBSCRIBE = 911
196
+ SUNSUBSCRIBE = 912
197
+ UNSUBSCRIBE = 913
198
+
199
+ # Scripting and Functions commands
200
+ EVAL = 1001
201
+ EVAL_READ_ONLY = 1002
202
+ EVAL_SHA = 1003
203
+ EVAL_SHA_READ_ONLY = 1004
204
+ FCALL = 1005
205
+ FCALL_READ_ONLY = 1006
206
+ FUNCTION_DELETE = 1007
207
+ FUNCTION_DUMP = 1008
208
+ FUNCTION_FLUSH = 1009
209
+ FUNCTION_KILL = 1010
210
+ FUNCTION_LIST = 1011
211
+ FUNCTION_LOAD = 1012
212
+ FUNCTION_RESTORE = 1013
213
+ FUNCTION_STATS = 1014
214
+ SCRIPT_DEBUG = 1015
215
+ SCRIPT_EXISTS = 1016
216
+ SCRIPT_FLUSH = 1017
217
+ SCRIPT_KILL = 1018
218
+ SCRIPT_LOAD = 1019
219
+ SCRIPT_SHOW = 1020
220
+
221
+ # Server management commands
222
+ ACL_CAT = 1101
223
+ ACL_DEL_USER = 1102
224
+ ACL_DRY_RUN = 1103
225
+ ACL_GEN_PASS = 1104
226
+ ACL_GET_USER = 1105
227
+ ACL_LIST = 1106
228
+ ACL_LOAD = 1107
229
+ ACL_LOG = 1108
230
+ ACL_SAVE = 1109
231
+ ACL_SET_USER = 1110
232
+ ACL_USERS = 1111
233
+ ACL_WHOAMI = 1112
234
+ BG_REWRITE_AOF = 1113
235
+ BG_SAVE = 1114
236
+ COMMAND_ = 1115 # Command - renamed to avoid collisions
237
+ COMMAND_COUNT = 1116
238
+ COMMAND_DOCS = 1117
239
+ COMMAND_GET_KEYS = 1118
240
+ COMMAND_GET_KEYS_AND_FLAGS = 1119
241
+ COMMAND_INFO = 1120
242
+ COMMAND_LIST = 1121
243
+ CONFIG_GET = 1122
244
+ CONFIG_RESET_STAT = 1123
245
+ CONFIG_REWRITE = 1124
246
+ CONFIG_SET = 1125
247
+ DB_SIZE = 1126
248
+ FAIL_OVER = 1127
249
+ FLUSH_ALL = 1128
250
+ FLUSH_DB = 1129
251
+ INFO = 1130
252
+ LAST_SAVE = 1131
253
+ LATENCY_DOCTOR = 1132
254
+ LATENCY_GRAPH = 1133
255
+ LATENCY_HISTOGRAM = 1134
256
+ LATENCY_HISTORY = 1135
257
+ LATENCY_LATEST = 1136
258
+ LATENCY_RESET = 1137
259
+ LOLWUT = 1138
260
+ MEMORY_DOCTOR = 1139
261
+ MEMORY_MALLOC_STATS = 1140
262
+ MEMORY_PURGE = 1141
263
+ MEMORY_STATS = 1142
264
+ MEMORY_USAGE = 1143
265
+ MODULE_LIST = 1144
266
+ MODULE_LOAD = 1145
267
+ MODULE_LOAD_EX = 1146
268
+ MODULE_UNLOAD = 1147
269
+ MONITOR = 1148
270
+ PSYNC = 1149
271
+ REPL_CONF = 1150
272
+ REPLICA_OF = 1151
273
+ RESTORE_ASKING = 1152
274
+ ROLE = 1153
275
+ SAVE = 1154
276
+ SHUT_DOWN = 1155
277
+ SLAVE_OF = 1156
278
+ SLOWLOG_GET = 1157
279
+ SLOWLOG_LEN = 1158
280
+ SLOWLOG_RESET = 1159
281
+ SWAP_DB = 1160
282
+ SYNC = 1161
283
+ TIME = 1162
284
+
285
+ # Set commands
286
+ SADD = 1201
287
+ SCARD = 1202
288
+ SDIFF = 1203
289
+ SDIFF_STORE = 1204
290
+ SINTER = 1205
291
+ SINTER_CARD = 1206
292
+ SINTER_STORE = 1207
293
+ SISMEMBER = 1208
294
+ SMEMBERS = 1209
295
+ SMISMEMBER = 1210
296
+
297
+ # Set commands
298
+ S_MOVE = 1211
299
+ S_POP = 1212
300
+ S_RAND_MEMBER = 1213
301
+ S_REM = 1214
302
+ S_SCAN = 1215
303
+ S_UNION = 1216
304
+ S_UNION_STORE = 1217
305
+
306
+ # Sorted set commands
307
+ BZ_MPOP = 1301
308
+ BZ_POP_MAX = 1302
309
+ BZ_POP_MIN = 1303
310
+ Z_ADD = 1304
311
+ Z_CARD = 1305
312
+ Z_COUNT = 1306
313
+ Z_DIFF = 1307
314
+ Z_DIFF_STORE = 1308
315
+ Z_INCR_BY = 1309
316
+ Z_INTER = 1310
317
+ Z_INTER_CARD = 1311
318
+ Z_INTER_STORE = 1312
319
+ Z_LEX_COUNT = 1313
320
+ Z_MPOP = 1314
321
+ Z_MSCORE = 1315
322
+ Z_POP_MAX = 1316
323
+ Z_POP_MIN = 1317
324
+ Z_RAND_MEMBER = 1318
325
+ Z_RANGE = 1319
326
+ Z_RANGE_BY_LEX = 1320
327
+ Z_RANGE_BY_SCORE = 1321
328
+ Z_RANGE_STORE = 1322
329
+ Z_RANK = 1323
330
+ Z_REM = 1324
331
+ Z_REM_RANGE_BY_LEX = 1325
332
+ Z_REM_RANGE_BY_RANK = 1326
333
+ Z_REM_RANGE_BY_SCORE = 1327
334
+ Z_REV_RANGE = 1328
335
+ Z_REV_RANGE_BY_LEX = 1329
336
+ Z_REV_RANGE_BY_SCORE = 1330
337
+ Z_REV_RANK = 1331
338
+ Z_SCAN = 1332
339
+ Z_SCORE = 1333
340
+ Z_UNION = 1334
341
+ Z_UNION_STORE = 1335
342
+
343
+ # Stream commands
344
+ X_ACK = 1401
345
+ X_ADD = 1402
346
+ X_AUTO_CLAIM = 1403
347
+ X_CLAIM = 1404
348
+ X_DEL = 1405
349
+ X_GROUP_CREATE = 1406
350
+ X_GROUP_CREATE_CONSUMER = 1407
351
+ X_GROUP_DEL_CONSUMER = 1408
352
+ X_GROUP_DESTROY = 1409
353
+ X_GROUP_SET_ID = 1410
354
+ X_INFO_CONSUMERS = 1411
355
+ X_INFO_GROUPS = 1412
356
+ X_INFO_STREAM = 1413
357
+ X_LEN = 1414
358
+ X_PENDING = 1415
359
+ X_RANGE = 1416
360
+ X_READ = 1417
361
+ X_READ_GROUP = 1418
362
+ X_REV_RANGE = 1419
363
+ X_SET_ID = 1420
364
+ X_TRIM = 1421
365
+
366
+ # String commands
367
+ APPEND = 1501
368
+ DECR = 1502
369
+ DECR_BY = 1503
370
+ GET = 1504
371
+ GET_DEL = 1505
372
+ GET_EX = 1506
373
+ GET_RANGE = 1507
374
+ GET_SET = 1508 # deprecated in 6.2.0
375
+ INCR = 1509
376
+ INCR_BY = 1510
377
+ INCR_BY_FLOAT = 1511
378
+ LCS = 1512
379
+ MGET = 1513
380
+ MSET = 1514
381
+ MSET_NX = 1515
382
+ PSET_EX = 1516 # deprecated in 2.6.12
383
+ SET = 1517
384
+ SET_EX = 1518 # deprecated in 2.6.12
385
+ SET_NX = 1519 # deprecated in 2.6.12
386
+ SET_RANGE = 1520
387
+ STRLEN = 1521
388
+ SUBSTR = 1522
389
+
390
+ # Transaction commands
391
+ DISCARD = 1601
392
+ EXEC = 1602
393
+ MULTI = 1603
394
+ UNWATCH = 1604
395
+ WATCH = 1605
396
+
397
+ # JSON commands
398
+ JSON_ARR_APPEND = 2001
399
+ JSON_ARR_INDEX = 2002
400
+ JSON_ARR_INSERT = 2003
401
+ JSON_ARR_LEN = 2004
402
+ JSON_ARR_POP = 2005
403
+ JSON_ARR_TRIM = 2006
404
+ JSON_CLEAR = 2007
405
+ JSON_DEBUG = 2008
406
+ JSON_DEL = 2009
407
+ JSON_FORGET = 2010
408
+ JSON_GET = 2011
409
+ JSON_MGET = 2012
410
+ JSON_NUM_INCR_BY = 2013
411
+ JSON_NUM_MULT_BY = 2014
412
+ JSON_OBJ_KEYS = 2015
413
+ JSON_OBJ_LEN = 2016
414
+ JSON_RESP = 2017
415
+ JSON_SET = 2018
416
+ JSON_STR_APPEND = 2019
417
+ JSON_STR_LEN = 2020
418
+ JSON_TOGGLE = 2021
419
+ JSON_TYPE = 2022
420
+
421
+ # Vector Search commands
422
+ FT_LIST = 2101
423
+ FT_AGGREGATE = 2102
424
+ FT_ALIAS_ADD = 2103
425
+ FT_ALIAS_DEL = 2104
426
+ FT_ALIAS_LIST = 2105
427
+ FT_ALIAS_UPDATE = 2106
428
+ FT_CREATE = 2107
429
+ FT_DROP_INDEX = 2108
430
+ FT_EXPLAIN = 2109
431
+ FT_EXPLAIN_CLI = 2110
432
+ FT_INFO = 2111
433
+ FT_PROFILE = 2112
434
+ FT_SEARCH = 2113
435
+ end
436
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Valkey
4
+ #
5
+ # this module defines constants for response types used in Valkey.
6
+ # Each constant represents a specific type of response that can be received from the server.
7
+ #
8
+ module ResponseType
9
+ NULL = 0
10
+ INT = 1
11
+ FLOAT = 2
12
+ BOOL = 3
13
+ STRING = 4
14
+ ARRAY = 5
15
+ MAP = 6
16
+ SETS = 7
17
+ OK = 8
18
+ ERROR = 9
19
+ end
20
+ end