diff --git a/Sources/Redis.swift b/Sources/Redis.swift index ecb46c7..e6b9356 100644 --- a/Sources/Redis.swift +++ b/Sources/Redis.swift @@ -14,7 +14,7 @@ * limitations under the License. **/ -import sys +import KituraSys import hiredis diff --git a/Sources/RedisMisc.swift b/Sources/RedisMisc.swift index 04e2dc8..0cab5ea 100644 --- a/Sources/RedisMisc.swift +++ b/Sources/RedisMisc.swift @@ -14,30 +14,30 @@ * limitations under the License. **/ -import sys +import KituraSys import Foundation public class RedisString { private let data: NSData - + public init(_ data: NSData) { self.data = data } - + public convenience init(_ value: String) { self.init(StringUtils.toUtf8String(value)!) } - + public convenience init(_ value: Int) { self.init(String(value)) } - + public convenience init(_ value: Double) { self.init(String(value)) } - + public var asData: NSData { return data } public var asString: String { return NSString(data: data, encoding: NSUTF8StringEncoding)!.bridge() } public var asInteger: Int { return Int(self.asString)! }