Skip to content

Commit dcb2761

Browse files
Rename ValkeyConnectionProtocol to ValkeyClientProtocol (#159)
Signed-off-by: Fabian Fett <[email protected]> Co-authored-by: Adam Fowler <[email protected]>
1 parent c6bcd99 commit dcb2761

29 files changed

+31
-32
lines changed

Package.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// swift-tools-version: 6.1
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

4-
import Foundation
54
import PackageDescription
65

76
let defaultSwiftSettings: [SwiftSetting] =
@@ -98,7 +97,7 @@ let package = Package(
9897
]
9998
)
10099

101-
if ProcessInfo.processInfo.environment["ENABLE_VALKEY_BENCHMARKS"] != nil {
100+
if Context.environment["ENABLE_VALKEY_BENCHMARKS"] != nil {
102101
package.dependencies.append(
103102
.package(url: "https://github.com/ordo-one/package-benchmark", from: "1.0.0")
104103
)

Sources/Valkey/Cluster/ValkeyClusterClient.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -645,11 +645,11 @@ public final class ValkeyClusterClient: Sendable {
645645
}
646646
}
647647

648-
/// Extension that makes `ValkeyClusterClient` conform to `ValkeyConnectionProtocol`.
648+
/// Extension that makes `ValkeyClusterClient` conform to `ValkeyClientProtocol`.
649649
///
650-
/// This allows the cluster client to be used anywhere a `ValkeyConnectionProtocol` is expected.
650+
/// This allows the cluster client to be used anywhere a `ValkeyClientProtocol` is expected.
651651
@available(valkeySwift 1.0, *)
652-
extension ValkeyClusterClient: ValkeyConnectionProtocol {}
652+
extension ValkeyClusterClient: ValkeyClientProtocol {}
653653

654654
/// Extension that makes ``ValkeyClient`` conform to ``ValkeyNodeConnectionPool``.
655655
///

Sources/Valkey/Commands/BitmapCommands.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ public struct SETBIT: ValkeyCommand {
468468
}
469469
}
470470

471-
extension ValkeyConnectionProtocol {
471+
extension ValkeyClientProtocol {
472472
/// Counts the number of set bits (population counting) in a string.
473473
///
474474
/// - Documentation: [BITCOUNT](https://valkey.io/commands/bitcount)

Sources/Valkey/Commands/ClusterCommands.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ public struct READWRITE: ValkeyCommand {
647647
}
648648
}
649649

650-
extension ValkeyConnectionProtocol {
650+
extension ValkeyClientProtocol {
651651
/// Signals that a cluster client is following an -ASK redirect.
652652
///
653653
/// - Documentation: [ASKING](https://valkey.io/commands/asking)

Sources/Valkey/Commands/ConnectionCommands.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ public struct SELECT: ValkeyCommand {
789789
}
790790
}
791791

792-
extension ValkeyConnectionProtocol {
792+
extension ValkeyClientProtocol {
793793
/// Authenticates the connection.
794794
///
795795
/// - Documentation: [AUTH](https://valkey.io/commands/auth)

Sources/Valkey/Commands/Custom/ClusterCustomCommands.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ package struct ValkeyClusterParseError: Error, Equatable {
4343

4444
/// A description of a Valkey cluster.
4545
///
46-
/// A description is return when you call ``ValkeyConnectionProtocol/clusterShards()``.
46+
/// A description is return when you call ``ValkeyClientProtocol/clusterShards()``.
4747
public struct ValkeyClusterDescription: Hashable, Sendable, RESPTokenDecodable {
4848
/// Details for a node within a cluster shard.
4949
public struct Node: Hashable, Sendable {

Sources/Valkey/Commands/GenericCommands.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ public struct WAITAOF: ValkeyCommand {
999999
}
10001000
}
10011001

1002-
extension ValkeyConnectionProtocol {
1002+
extension ValkeyClientProtocol {
10031003
/// Copies the value of a key to a new key.
10041004
///
10051005
/// - Documentation: [COPY](https://valkey.io/commands/copy)

Sources/Valkey/Commands/GeoCommands.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ public struct GEOSEARCHSTORE: ValkeyCommand {
11021102
}
11031103
}
11041104

1105-
extension ValkeyConnectionProtocol {
1105+
extension ValkeyClientProtocol {
11061106
/// Adds one or more members to a geospatial index. The key is created if it doesn't exist.
11071107
///
11081108
/// - Documentation: [GEOADD](https://valkey.io/commands/geoadd)

Sources/Valkey/Commands/HashCommands.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ public struct HVALS: ValkeyCommand {
431431
}
432432
}
433433

434-
extension ValkeyConnectionProtocol {
434+
extension ValkeyClientProtocol {
435435
/// Deletes one or more fields and their values from a hash. Deletes the hash if no fields remain.
436436
///
437437
/// - Documentation: [HDEL](https://valkey.io/commands/hdel)

Sources/Valkey/Commands/HyperloglogCommands.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public struct PFMERGE: ValkeyCommand {
8080
}
8181
}
8282

83-
extension ValkeyConnectionProtocol {
83+
extension ValkeyClientProtocol {
8484
/// Adds elements to a HyperLogLog key. Creates the key if it doesn't exist.
8585
///
8686
/// - Documentation: [PFADD](https://valkey.io/commands/pfadd)

0 commit comments

Comments
 (0)