Skip to content

Namespace global static factory methods under `Redis`

Nathan Harris requested to merge namespacing into master

Motivation:

The two provided factory methods for creating RedisConnection and ClientBootstrap were not readily discoverable or appropriately expressible.

Modifications:

  • Add: Redis top-level namespace enum
  • Move & Rename: RedisConnection.connect factory method to Redis.makeConnection
  • Move & Rename: ClientBootstrap.makeRedisDefault factory method to Redis.makeDefaultClientBootstrap
  • Rename: EventLoopFuture extension file to just SwiftNIO to have all framework extensions in a single file

Results:

Using NIORedis should be more discoverable and straight forward on how to create a connection with Redis.makeConnection(...) over RedisConnection.connect(...)

Merge request reports