mirror of
https://github.com/swift-server/RediStack.git
synced 2026-05-03 07:32:28 +00:00
610915a909
Motivation: Redis is written in C, so even though it has concepts of "types" such as SortedSet or List its commands are all "free-floating" functions. This can make it unfamiliar for those new to Redis to work within its systems and understand the relation of all of the commands. RediStack can improve this by giving a way of having a consistent reference to a Redis type and all of its associated methods. Modifications: - Add: New library product called "RedisTypes" - Add: First type to "RedisTypes", `RedisSet` Result: Newcomers to Redis will have an easier time getting familiar with the APIs and working with its types by having wrappers that provide a familiar Swift Standard Library API tailored to Redis APIs.
26 lines
843 B
Swift
26 lines
843 B
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the RediStack open source project
|
|
//
|
|
// Copyright (c) 2020 RediStack project authors
|
|
// Licensed under Apache License v2.0
|
|
//
|
|
// See LICENSE.txt for license information
|
|
// See CONTRIBUTORS.txt for the list of RediStack project authors
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
import class Foundation.ProcessInfo
|
|
import RediStackTestUtils
|
|
|
|
class RedisTypesIntegrationTestCase: RedisIntegrationTestCase {
|
|
override var redisHostname: String {
|
|
return ProcessInfo.processInfo.environment["REDIS_URL"] ?? "localhost"
|
|
}
|
|
override var redisPassword: String? {
|
|
return ProcessInfo.processInfo.environment["REDIS_PW"]
|
|
}
|
|
}
|