We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RESPValue
1 parent f3a9b32 commit 21fc0a4Copy full SHA for 21fc0a4
Sources/NIORedis/RESP/RESPValue.swift
@@ -69,21 +69,21 @@ extension RESPValue {
69
}
70
71
/// Extracted value from `integer` representations.
72
- var int: Int? {
+ public var int: Int? {
73
guard case .integer(let int) = self else { return nil }
74
return int
75
76
77
/// Returns `true` if this data is a "null" value from Redis.
78
- var isNull: Bool {
+ public var isNull: Bool {
79
switch self {
80
case .null: return true
81
default: return false
82
83
84
85
/// Extracted value from `error` representations.
86
- var error: RedisError? {
+ public var error: RedisError? {
87
88
case .error(let error): return error
89
default: return nil
0 commit comments