Skip to content

NIORedis 0.4.0: POP and SSWG

Pre-release
Pre-release
Compare
Choose a tag to compare
@Mordil Mordil released this 19 Mar 05:08
· 310 commits to master since this release
e4e32fd

Breaking Changes

  • Removed DispatchRedis package (5c32b97)
  • RedisConnection and RedisPipeline have become protocols. The default implementations have been renamed to NIORedisConnection and NIORedisPipeline (6b30127)
  • The select(_:) command convenience method has been renamed to select(database:) (6b30127)
  • RedisPipeline.enqueue(command:arguments:) has been renamed to RedisPipeline.enqueue(operation:) which is now a closure that provides a RedisCommandExecutor so all of the command convenience methods are made available. (6b30127)
    • Commands are still queued and not executed immediately.
  • RedisConnection.command(_:arguments:) is no longer supported (6b30127)

New Additions

  • swift-log is now added, and default logging implementations have been added (73d5930)
    • Most logging is done with debug
    • Each logging instance can be overridden in constructors of objects that log
    • Each logger uses a NIORedis. prefix in their label
  • RedisCommandExecutor protocol that creates an interface for objects responsible for sending commands (6b30127)
    • NIORedisConnection and NIORedisPipeline both conform to this protocol
  • RESPConvertible conformance to Optional (618481f)
  • New command convenience methods (9f505be)

Fixes

  • NIORedisConnection.close() to send a "QUIT" command to Redis before closing, and properly checking if the connection has been closed already (6825451)