Skip to content

Commit

Permalink
Changed import of sys to import of KituraSys
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuelk committed Feb 19, 2016
1 parent 0f04a5c commit 3ceac0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Sources/Redis.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
**/

import sys
import KituraSys

import hiredis

Expand Down
12 changes: 6 additions & 6 deletions Sources/RedisMisc.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)! }
Expand Down

0 comments on commit 3ceac0e

Please # to comment.