File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Sources/RediStack/Commands
Tests/RediStackIntegrationTests/Commands Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ extension RedisCommand {
70
70
71
71
/// [KEYS](https://redis.io/commands/keys)
72
72
/// - Parameter pattern: The key pattern to search for matching keys that exist in Redis.
73
- public static func keys( matching pattern: String ) -> RedisCommand < [ String ] > {
73
+ public static func keys( matching pattern: String ) -> RedisCommand < [ RedisKey ] > {
74
74
return . init( keyword: " KEYS " , arguments: [ pattern. convertedToRESPValue ( ) ] )
75
75
}
76
76
@@ -126,7 +126,7 @@ extension RedisClient {
126
126
/// See ``RedisCommand/keys(matching:)``
127
127
/// - Parameter pattern: The key pattern to search for matching keys that exist in Redis.
128
128
/// - Returns: A list of keys that matched the provided pattern.
129
- public func listKeys( matching pattern: String ) -> EventLoopFuture < [ String ] > {
129
+ public func listKeys( matching pattern: String ) -> EventLoopFuture < [ RedisKey ] > {
130
130
return self . send ( . keys( matching: pattern) )
131
131
}
132
132
Original file line number Diff line number Diff line change @@ -156,6 +156,6 @@ final class KeyCommandsTests: RediStackIntegrationTestCase {
156
156
}
157
157
let keys = try self . connection. listKeys ( matching: " \( #function) * " ) . wait ( )
158
158
XCTAssertEqual ( keys. count, range. count)
159
- XCTAssertTrue ( keys. allSatisfy ( { $0. contains ( #function) } ) )
159
+ XCTAssertTrue ( keys. allSatisfy ( { $0. rawValue . contains ( #function) } ) )
160
160
}
161
161
}
You can’t perform that action at this time.
0 commit comments