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
Stringkey is now a type-safe representation calledRedisKey!93- It conforms to:
Hashable,RESPValueConvertible,Codable,Comparable,Equatable,ExpressibleByStringLiteralandRawRepresentable RESPValuenow has an init overload forRedisKey
- It conforms to:
- The
RedisClientprotocol now has anisConnected: Boolreadonly property requirement !95 - All timeout related command parameters now use the
NIO.TimeAmounttype, rather thanInt!96 - The
zaddcommand API has been reworked to be more expressive and type-safe !97RedisSortedSetAddOptionis nowRedisZaddInsertBehaviorRedisZaddReturnBehaviorhas 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
RedisZLexBoundandRedisZScoreBoundenumslet 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.convertFromRESPValuehas been renamed to be an overload ofmap!104
Minor
- Added the
authorizecommand method toRedisClient!94 CollectionofRESPValuenow have severalmapoverloads to convert the RESPValue to other types that areRESPValueConvertible!103
Patch
- Updated SwiftMetrics version to be
1.0.0 ..< 3.0.0(973a9162)