RediStack 1.0.0 Alpha 8
Pre-release
Pre-release
API Docs are always available at docs.redistack.info
Major
- All commands that require a
String
key is now a type-safe representation calledRedisKey
!93- It conforms to:
Hashable
,RESPValueConvertible
,Codable
,Comparable
,Equatable
,ExpressibleByStringLiteral
andRawRepresentable
RESPValue
now has an init overload forRedisKey
- It conforms to:
- The
RedisClient
protocol now has anisConnected: Bool
readonly property requirement !95 - All timeout related command parameters now use the
NIO.TimeAmount
type, rather thanInt
!96 - The
zadd
command API has been reworked to be more expressive and type-safe !97RedisSortedSetAddOption
is nowRedisZaddInsertBehavior
RedisZaddReturnBehavior
has been added, instead of a Boolean parameterlet client = ... client.zadd( (element, 3), to: "my_sorted_set", inserting: .onlyNewElements, returning: .insertedElementsCount )
- The range command APIs for SortedSet and List types in Redis have been reworked to be more expressive with the Swift range syntax !98
- The range based APIs also have been changed to be type-safe instead of the old String based API with the
RedisZLexBound
andRedisZScoreBound
enumslet client = ... client.lrange(from: "my_list", indices: 3...5)
- The range based APIs also have been changed to be type-safe instead of the old String based API with the
EventLoopFuture.convertFromRESPValue
has been renamed to be an overload ofmap
!104
Minor
- Added the
authorize
command method toRedisClient
!94 Collection
ofRESPValue
now have severalmap
overloads to convert the RESPValue to other types that areRESPValueConvertible
!103
Patch
- Updated SwiftMetrics version to be
1.0.0 ..< 3.0.0
(973a9162)