You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Docs/Basics.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ The object returned from `GetDatabase` is a cheap pass-thru object, and does not
35
35
object asyncState = ...
36
36
IDatabase db = redis.GetDatabase(databaseNumber, asyncState);
37
37
38
-
Once you have the `IDatabase`, it is simply a case of using the [redis API](http://redis.io/commands). Note that all methods have both synchronous and asynchronous implementaions. In line with Microsoft's naming guidance, the asynchronous methods all end `...Async(...)`, and are fully `await`-able etc.
38
+
Once you have the `IDatabase`, it is simply a case of using the [redis API](http://redis.io/commands). Note that all methods have both synchronous and asynchronous implementations. In line with Microsoft's naming guidance, the asynchronous methods all end `...Async(...)`, and are fully `await`-able etc.
39
39
40
40
The simplest operation would be to store and retrieve a value:
41
41
@@ -100,12 +100,12 @@ There are 3 primary usage mechanisms with StackExchange.Redis:
100
100
- Asynchronous - where the operation completes some time in the future, and a `Task` or `Task<T>` is returned immediately, which can later:
101
101
- be `.Wait()`ed (blocking the current thread until the response is available)
102
102
- have a continuation callback added ([`ContinueWith`](http://msdn.microsoft.com/en-us/library/system.threading.tasks.task.continuewith(v=vs.110).aspx) in the TPL)
103
-
- be *awaited* (which is a language-level feature that simplfies the latter, while also continuing immediately if the reply is already known)
103
+
- be *awaited* (which is a language-level feature that simplifies the latter, while also continuing immediately if the reply is already known)
104
104
- Fire-and-Forget - where you really aren't interested in the reply, and are happy to continue irrespective of the response
105
105
106
106
The synchronous usage is already shown in the examples above. This is the simplest usage, and does not involve the [TPL][1].
107
107
108
-
For asynchronous uage, the key difference is the `Async` suffix on methods, and (typically) the use of the `await` language feature. For example:
108
+
For asynchronous usage, the key difference is the `Async` suffix on methods, and (typically) the use of the `await` language feature. For example:
Copy file name to clipboardExpand all lines: Docs/KeysValues.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,4 +93,4 @@ The response uses the `RedisResult` type (this is unique to scripting; usually t
93
93
Conclusion
94
94
---
95
95
96
-
The types used in the API are very deliberately chosen to distinguish redis *keys* from *values*. However, in virtually all cases you will not need to directly refer to the unerlying types involved, as conversion operations are provided.
96
+
The types used in the API are very deliberately chosen to distinguish redis *keys* from *values*. However, in virtually all cases you will not need to directly refer to the underlying types involved, as conversion operations are provided.
Copy file name to clipboardExpand all lines: Docs/PipelinesMultiplexers.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ For this reason, the only redis features that StackExchange.Redis does not offer
76
76
This achieves the same intent without requiring blocking operations. Notes:
77
77
78
78
- the *data* is not sent via pub/sub; the pub/sub API is only used to notify workers to check for more work
79
-
- if there are no workers, the new items remain buffered in the lsit; work does not fall on the floor
79
+
- if there are no workers, the new items remain buffered in the list; work does not fall on the floor
80
80
- only one worker can pop a single value; when there are more consumers than producers, some consumers will be notified and then find there is nothing to do
81
81
- when you restart a worker, you should *assume* there is work so that you process any backlog
82
82
- but other than that, the semantic is identical to blocking pops
0 commit comments