File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ let package = Package(
6262
6363## Using the SwiftNIO Redis protocol handler
6464
65- The RESP protocol handler just implemented as a regular
65+ The RESP protocol is implemented as a regular
6666` ChannelHandler ` , similar to ` NIOHTTP1 ` .
6767It takes incoming ` ByteBuffer ` data, parses that, and emits ` RESPValue `
6868items.
@@ -116,16 +116,16 @@ Using NIO Promises:
116116
117117``` swift
118118client
119- .set (" counter" , 0 , expire : 2 )
120- .then {
121- client.incr (" counter" , by : 10 )
122- }
123- .then {
124- client.get (" counter" )
125- }
126- .map {
127- print (" counter is:" , $0 )
128- }
119+ .set (" counter" , 0 , expire : 2 )
120+ .then {
121+ client.incr (" counter" , by : 10 )
122+ }
123+ .then {
124+ client.get (" counter" )
125+ }
126+ .map {
127+ print (" counter is:" , $0 )
128+ }
129129```
130130
131131
You can’t perform that action at this time.
0 commit comments