@@ -41,6 +41,13 @@ public struct GEOADD: RESPCommand {
4141 @usableFromInline let latitude : Double
4242 @usableFromInline let member : String
4343
44+
45+ @inlinable public init ( longitude: Double , latitude: Double , member: String ) {
46+ self . longitude = longitude
47+ self . latitude = latitude
48+ self . member = member
49+ }
50+
4451 @inlinable
4552 public func encode( into commandEncoder: inout RESPCommandEncoder ) -> Int {
4653 var count = 0
@@ -162,6 +169,12 @@ public struct GEORADIUS: RESPCommand {
162169 @usableFromInline let count : Int
163170 @usableFromInline let any : Bool
164171
172+
173+ @inlinable public init ( count: Int , any: Bool = false ) {
174+ self . count = count
175+ self . any = any
176+ }
177+
165178 @inlinable
166179 public func encode( into commandEncoder: inout RESPCommandEncoder ) -> Int {
167180 var count = 0
@@ -249,6 +262,12 @@ public struct GEORADIUSBYMEMBER: RESPCommand {
249262 @usableFromInline let count : Int
250263 @usableFromInline let any : Bool
251264
265+
266+ @inlinable public init ( count: Int , any: Bool = false ) {
267+ self . count = count
268+ self . any = any
269+ }
270+
252271 @inlinable
253272 public func encode( into commandEncoder: inout RESPCommandEncoder ) -> Int {
254273 var count = 0
@@ -334,6 +353,12 @@ public struct GEORADIUSBYMEMBERRO: RESPCommand {
334353 @usableFromInline let count : Int
335354 @usableFromInline let any : Bool
336355
356+
357+ @inlinable public init ( count: Int , any: Bool = false ) {
358+ self . count = count
359+ self . any = any
360+ }
361+
337362 @inlinable
338363 public func encode( into commandEncoder: inout RESPCommandEncoder ) -> Int {
339364 var count = 0
@@ -405,6 +430,12 @@ public struct GEORADIUSRO: RESPCommand {
405430 @usableFromInline let count : Int
406431 @usableFromInline let any : Bool
407432
433+
434+ @inlinable public init ( count: Int , any: Bool = false ) {
435+ self . count = count
436+ self . any = any
437+ }
438+
408439 @inlinable
409440 public func encode( into commandEncoder: inout RESPCommandEncoder ) -> Int {
410441 var count = 0
@@ -462,6 +493,12 @@ public struct GEOSEARCH: RESPCommand {
462493 @usableFromInline let longitude : Double
463494 @usableFromInline let latitude : Double
464495
496+
497+ @inlinable public init ( longitude: Double , latitude: Double ) {
498+ self . longitude = longitude
499+ self . latitude = latitude
500+ }
501+
465502 @inlinable
466503 public func encode( into commandEncoder: inout RESPCommandEncoder ) -> Int {
467504 var count = 0
@@ -502,6 +539,12 @@ public struct GEOSEARCH: RESPCommand {
502539 @usableFromInline let radius : Double
503540 @usableFromInline let unit : ByCircleUnit
504541
542+
543+ @inlinable public init ( radius: Double , unit: ByCircleUnit ) {
544+ self . radius = radius
545+ self . unit = unit
546+ }
547+
505548 @inlinable
506549 public func encode( into commandEncoder: inout RESPCommandEncoder ) -> Int {
507550 var count = 0
@@ -531,6 +574,13 @@ public struct GEOSEARCH: RESPCommand {
531574 @usableFromInline let height : Double
532575 @usableFromInline let unit : ByBoxUnit
533576
577+
578+ @inlinable public init ( width: Double , height: Double , unit: ByBoxUnit ) {
579+ self . width = width
580+ self . height = height
581+ self . unit = unit
582+ }
583+
534584 @inlinable
535585 public func encode( into commandEncoder: inout RESPCommandEncoder ) -> Int {
536586 var count = 0
@@ -568,6 +618,12 @@ public struct GEOSEARCH: RESPCommand {
568618 @usableFromInline let count : Int
569619 @usableFromInline let any : Bool
570620
621+
622+ @inlinable public init ( count: Int , any: Bool = false ) {
623+ self . count = count
624+ self . any = any
625+ }
626+
571627 @inlinable
572628 public func encode( into commandEncoder: inout RESPCommandEncoder ) -> Int {
573629 var count = 0
@@ -609,6 +665,12 @@ public struct GEOSEARCHSTORE: RESPCommand {
609665 @usableFromInline let longitude : Double
610666 @usableFromInline let latitude : Double
611667
668+
669+ @inlinable public init ( longitude: Double , latitude: Double ) {
670+ self . longitude = longitude
671+ self . latitude = latitude
672+ }
673+
612674 @inlinable
613675 public func encode( into commandEncoder: inout RESPCommandEncoder ) -> Int {
614676 var count = 0
@@ -649,6 +711,12 @@ public struct GEOSEARCHSTORE: RESPCommand {
649711 @usableFromInline let radius : Double
650712 @usableFromInline let unit : ByCircleUnit
651713
714+
715+ @inlinable public init ( radius: Double , unit: ByCircleUnit ) {
716+ self . radius = radius
717+ self . unit = unit
718+ }
719+
652720 @inlinable
653721 public func encode( into commandEncoder: inout RESPCommandEncoder ) -> Int {
654722 var count = 0
@@ -678,6 +746,13 @@ public struct GEOSEARCHSTORE: RESPCommand {
678746 @usableFromInline let height : Double
679747 @usableFromInline let unit : ByBoxUnit
680748
749+
750+ @inlinable public init ( width: Double , height: Double , unit: ByBoxUnit ) {
751+ self . width = width
752+ self . height = height
753+ self . unit = unit
754+ }
755+
681756 @inlinable
682757 public func encode( into commandEncoder: inout RESPCommandEncoder ) -> Int {
683758 var count = 0
@@ -715,6 +790,12 @@ public struct GEOSEARCHSTORE: RESPCommand {
715790 @usableFromInline let count : Int
716791 @usableFromInline let any : Bool
717792
793+
794+ @inlinable public init ( count: Int , any: Bool = false ) {
795+ self . count = count
796+ self . any = any
797+ }
798+
718799 @inlinable
719800 public func encode( into commandEncoder: inout RESPCommandEncoder ) -> Int {
720801 var count = 0
0 commit comments