mirror of https://github.com/dapr/docs.git
Add info for Redis Binding create operation (#2539)
* fix formatting for kubernetes binding doc Signed-off-by: Sarthak Sharma <t-sartsharma@microsoft.com> * add request format for redis binding Signed-off-by: Sarthak Sharma <t-sartsharma@microsoft.com> Co-authored-by: Mark Fussell <markfussell@gmail.com>
This commit is contained in:
parent
9e83de01e0
commit
19196d9ad9
|
@ -33,7 +33,7 @@ spec:
|
||||||
| Field | Required | Binding support | Details | Example |
|
| Field | Required | Binding support | Details | Example |
|
||||||
|--------------------|:--------:|------------|-----|---------|
|
|--------------------|:--------:|------------|-----|---------|
|
||||||
| namespace | Y | Input | The Kubernetes namespace to read events from | `"default"` |
|
| namespace | Y | Input | The Kubernetes namespace to read events from | `"default"` |
|
||||||
| resyncPeriodInSec | N | Te period of time to refresh event list from Kubernetes API server. Defaults to `"10"` | `"15"`
|
| resyncPeriodInSec | N | Input | The period of time to refresh event list from Kubernetes API server. Defaults to `"10"` | `"15"`
|
||||||
|
|
||||||
## Binding support
|
## Binding support
|
||||||
|
|
||||||
|
|
|
@ -68,6 +68,27 @@ This component supports **output binding** with the following operations:
|
||||||
|
|
||||||
- `create`
|
- `create`
|
||||||
|
|
||||||
|
You can store a record in Redis using the `create` operation. This sets a key to hold a value. If the key already exists, the value is overwritten.
|
||||||
|
|
||||||
|
### Request
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"operation": "create",
|
||||||
|
"metadata": {
|
||||||
|
"key": "key1"
|
||||||
|
},
|
||||||
|
"data": {
|
||||||
|
"Hello": "World",
|
||||||
|
"Lorem": "Ipsum"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Response
|
||||||
|
|
||||||
|
An HTTP 204 (No Content) and empty body is returned if successful.
|
||||||
|
|
||||||
## Create a Redis instance
|
## Create a Redis instance
|
||||||
|
|
||||||
Dapr can use any Redis instance - containerized, running on your local dev machine, or a managed cloud service, provided the version of Redis is 5.0.0 or later.
|
Dapr can use any Redis instance - containerized, running on your local dev machine, or a managed cloud service, provided the version of Redis is 5.0.0 or later.
|
||||||
|
|
Loading…
Reference in New Issue