93 Commits

Author SHA1 Message Date
Nathan Harris 596b9b98cb Merge pull request #13 from Mordil/set-commands
Add all Set commands with unit tests
0.3.0
2019-03-12 23:15:48 -07:00
Nathan Harris 00bf027330 Add all Set commands with unit tests
This contributes to #10
2019-03-12 23:14:44 -07:00
Nathan Harris 571d7bce02 Housekeeping of code
- Move: `String.convertedToData()` to `NIORedisTests` as a test utility
- Change: URLs in code comments to be Markdown links
- Change: Code comments to be more correct
2019-03-12 14:42:11 -07:00
Nathan Harris a17bfff3ff Merge pull request #12 from Mordil/9-direct-bytebuffer
Update `RESPEncoder` to write to `ByteBuffer` directly
2019-03-12 14:35:15 -07:00
Nathan Harris 9c5db400b2 Update RESPEncoder to write to ByteBuffer directly
This is to remove the need of allocations with Foundation.Data before writing to the buffer.

We should see an estimated ~10% performance boost to encoding values.
2019-03-12 14:31:42 -07:00
Nathan Harris b4fc9f3ae5 Update to latest SwiftNIO 2019-03-11 21:41:13 -07:00
Nathan Harris 0e2808c9f7 Merge pull request #11 from tanner0101/nio2-ctx-fixes
nio 2 ctx fixes
2019-02-28 23:02:59 -08:00
tanner0101 5a831fad05 nio 2 ctx fixes 2019-02-28 22:05:42 -05:00
Nathan Harris 4d9afa5ba0 Update to latest NIO2 changes 2019-02-12 22:45:25 -08:00
Nathan Harris 8c9d034c24 Adopt Swift's Code of Conduct 2019-02-12 22:44:04 -08:00
Nathan Harris deac19553f resolve SR-9876 bug with different joined "implementation" 2019-02-11 16:15:19 -08:00
Nathan Harris 51e18f7149 remove unnecessary indirect label on RESPValue.array case 2019-02-11 16:14:34 -08:00
Nathan Harris dd58fb2cfe Split NIO ChannelHandler conformances into separate files from RESP Encoder/Decoder 2019-02-11 12:33:22 -08:00
Nathan Harris 5bdb92967b Rename RESPConvertible file to RESPValueConvertible to match type definition 2019-02-11 12:28:09 -08:00
Nathan Harris 4cbb84bc59 Merge pull request #8 from Mordil/proposal-update
Update code to match current proposal
2019-02-08 17:34:36 -08:00
Nathan Harris 90c3acbb82 Update docker images to vapor 2019-02-08 17:23:49 -08:00
Nathan Harris 7b9a349213 Rename RedisCommandContext.promise to responsePromise 2019-02-08 17:14:21 -08:00
Nathan Harris fff2486450 Update RESPConvertible to match proposal.
- Rename: `RESPConvertible` to `RESPValueConvertible`
- Change: `RESPValueConvertible.convertFromRESP(_:)` to be a non-throwing failable initializer
- Rename: `RESPValueConvertible.convertToRESP()` to non-throwing `convertedToRESPValue()`
2019-02-08 16:52:48 -08:00
Nathan Harris c80b8e7312 add contribution information 2019-02-08 00:16:58 -08:00
Nathan Harris 96af68f4b5 add additional details to README 2019-02-08 00:08:25 -08:00
Nathan Harris 229f9574d8 Update README 2019-02-07 23:43:08 -08:00
Nathan Harris 3867d44a7c add circle ci config 2019-02-07 09:25:02 -08:00
Nathan Harris e168b6c65e update to latest NIO2 2019-02-06 16:13:51 -08:00
Nathan Harris 148ebdc642 Help compiler in unit tests for type inference 2019-01-17 16:11:21 -08:00
Nathan Harris e25db7dcfd Make public factory method for "standard" NIORedis ClientBootstrap 2019-01-17 16:10:59 -08:00
Nathan Harris 1e160b0680 Make RedisDriver.eventLoopGroup public 2019-01-17 13:24:46 -08:00
Nathan Harris d8cd550931 Fix initializers not being public 2019-01-17 12:22:11 -08:00
Nathan Harris 473b3954ec Merge pull request #5 from Mordil/rev-2
Rev 2
0.2.0
2019-01-10 12:07:16 -08:00
Nathan Harris badf342391 Simplify README now that forum post is active 2019-01-10 12:06:42 -08:00
Nathan Harris 915b620fa3 Update package description for Swift 5.0 2019-01-10 11:56:17 -08:00
Nathan Harris c54f804ed8 Remove deprecation warnings for Data.init(bytes:) 2019-01-10 11:56:11 -08:00
Nathan Harris 7609a8455f Cleanup interactions with isRunning and isClosed properties 2019-01-10 11:33:47 -08:00
Nathan Harris dcf6b20af9 Make RESPValue.array properly indirect 2019-01-09 20:31:50 -08:00
Nathan Harris 2bb74cad84 Rename ExecutionModel to ThreadOwnershipModel with internal and external cases 2019-01-09 18:28:06 -08:00
Nathan Harris 38dea8185e Merge branch 'composeability' into rev-2
* composeability:
  Update unit test references for new type names and to cover more test cases
  Update `DispatchRedis` module with new classes
  Remove deprecated classes
  Update command extensions
  Add `RedisDriver` to eventually replace `NIORedis` that works more deeply with NIO
  Add `RedisPipeline` to eventually replace `NIORedisPipeline` that works more deeply with NIO
  Add `RedisConnection` to eventually replace `NIORedisConnection` that works more deeply with NIO
  Add `RedisCommandHandler` to eventually replace `RedisMessenger` that works more deeply with NIO
2019-01-09 18:15:12 -08:00
Nathan Harris bd4cf7890d Update unit test references for new type names and to cover more test cases 2019-01-09 18:14:24 -08:00
Nathan Harris 1c0ee4fe6c Update DispatchRedis module with new classes 2019-01-09 18:14:24 -08:00
Nathan Harris 1db5a045cf Remove deprecated classes 2019-01-09 18:14:24 -08:00
Nathan Harris cad203b9e7 Update command extensions 2019-01-09 18:14:24 -08:00
Nathan Harris 65d0afdfd0 Add RedisDriver to eventually replace NIORedis that works more deeply with NIO 2019-01-09 18:14:24 -08:00
Nathan Harris 2d95af59d9 Add RedisPipeline to eventually replace NIORedisPipeline that works more deeply with NIO 2019-01-09 18:14:24 -08:00
Nathan Harris 1469282930 Add RedisConnection to eventually replace NIORedisConnection that works more deeply with NIO 2019-01-09 18:14:24 -08:00
Nathan Harris 8cdcffd8cd Add RedisCommandHandler to eventually replace RedisMessenger that works more deeply with NIO 2019-01-09 18:14:24 -08:00
Nathan Harris 19cbadc506 Clarify and make public RESPDecoder 2019-01-09 13:18:28 -08:00
Nathan Harris e01cdf565d Clarify and make public RESPEncoder 2019-01-09 13:10:59 -08:00
Nathan Harris 26e3ac2aab Rename usage of RedisData to RESPValue or just RESP where it makes sense 2019-01-09 13:04:51 -08:00
Nathan Harris 473bdcbeed Clarify module and project names 2019-01-09 12:44:41 -08:00
Nathan Harris 5d9db5b9b3 Add Apache 2 license 2019-01-08 15:14:19 -08:00
Nathan Harris 498a732b3f Update pitch doc to include references to pipelines and include links 0.1.0 2019-01-07 19:45:46 -08:00
Nathan Harris 44633a29b2 Merge branch 'pipelining'
* pipelining:
  Add `NIORedisPipeline` and `RedisPipeline` to allow chaining requests and receiving a single response
  Rename `redisPipeline` property in `NIORedisConnection` to remove possible confusion on upcoming `NIORedisPipeline` structure
  Restructure `RedisMessenger` to be a little more legible
2019-01-07 19:37:26 -08:00