Namespace global static factory methods under `Redis`
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 toRedis.makeConnection
- Move & Rename:
ClientBootstrap.makeRedisDefault
factory method toRedis.makeDefaultClientBootstrap
- Rename:
EventLoopFuture
extension file to justSwiftNIO
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(...)