Skip to content

Commit cfc9043

Browse files
committed
github issue feedback
1 parent c3d5e2e commit cfc9043

5 files changed

+22
-20
lines changed

articles/azure-functions/functions-bindings-cache-input.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.author: franlanglois
66
ms.service: azure-functions
77
ms.custom: devx-track-extended-java, devx-track-js, devx-track-python
88
ms.topic: reference
9-
ms.date: 05/20/2024
9+
ms.date: 07/12/2024
1010
zone_pivot_groups: programming-languages-set-functions-lang-workers
1111
---
1212

articles/azure-functions/functions-bindings-cache-output.md

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.author: franlanglois
77
ms.service: azure-functions
88
ms.custom: devx-track-extended-java, devx-track-js, devx-track-python
99
ms.topic: reference
10-
ms.date: 02/27/2024
10+
ms.date: 07/12/2024
1111
---
1212

1313
# Azure Cache for Redis output binding for Azure Functions
@@ -40,45 +40,48 @@ The following example shows a pub/sub trigger on the set event with an output bi
4040
>
4141
>For .NET functions, using the _isolated worker_ model is recommended over the _in-process_ model. For a comparison of the _in-process_ and _isolated worker_ models, see differences between the _isolated worker_ model and the _in-process_ model for .NET on Azure Functions.
4242
43-
### [In-process](#tab/in-process)
43+
### [Isolated process](#tab/isolated-process)
4444

4545
```c#
46+
4647
using Microsoft.Extensions.Logging;
4748

48-
namespace Microsoft.Azure.WebJobs.Extensions.Redis.Samples.RedisOutputBinding
49+
namespace Microsoft.Azure.Functions.Worker.Extensions.Redis.Samples.RedisOutputBinding
4950
{
5051
internal class SetDeleter
5152
{
52-
[FunctionName(nameof(SetDeleter))]
53-
public static void Run(
54-
[RedisPubSubTrigger(Common.connectionStringSetting, "__keyevent@0__:set")] string key,
55-
[Redis(Common.connectionStringSetting, "DEL")] out string[] arguments,
53+
[Function(nameof(SetDeleter))]
54+
[RedisOutput(Common.connectionString, "DEL")]
55+
public static string Run(
56+
[RedisPubSubTrigger(Common.connectionString, "__keyevent@0__:set")] string key,
5657
ILogger logger)
5758
{
5859
logger.LogInformation($"Deleting recently SET key '{key}'");
59-
arguments = new string[] { key };
60+
return key;
6061
}
6162
}
6263
}
6364
```
6465

65-
### [Isolated process](#tab/isolated-process)
66+
---
67+
68+
### [In-process](#tab/in-process)
6669

6770
```csharp
68-
using Microsoft.Extensions.Logging;
71+
using Microsoft.Extensions.Logging;
6972

7073
namespace Microsoft.Azure.WebJobs.Extensions.Redis.Samples.RedisOutputBinding
7174
{
7275
internal class SetDeleter
7376
{
7477
[FunctionName(nameof(SetDeleter))]
75-
[return: Redis(Common.connectionStringSetting, "DEL")]
76-
public static string Run(
78+
public static void Run(
7779
[RedisPubSubTrigger(Common.connectionStringSetting, "__keyevent@0__:set")] string key,
80+
[Redis(Common.connectionStringSetting, "DEL")] out string[] arguments,
7881
ILogger logger)
7982
{
8083
logger.LogInformation($"Deleting recently SET key '{key}'");
81-
return key;
84+
arguments = new string[] { key };
8285
}
8386
}
8487
}

articles/azure-functions/functions-bindings-cache-trigger-redislist.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.author: franlanglois
88
ms.service: azure-functions
99
ms.custom: devx-track-extended-java, devx-track-js, devx-track-python
1010
ms.topic: reference
11-
ms.date: 05/20/2024
11+
ms.date: 07/12/2024
1212
---
1313

1414
# RedisListTrigger for Azure Functions

articles/azure-functions/functions-bindings-cache-trigger-redispubsub.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.author: franlanglois
88
ms.service: azure-functions
99
ms.custom: devx-track-dotnet, devx-track-extended-java, devx-track-js, devx-track-python
1010
ms.topic: reference
11-
ms.date: 05/20/2024
11+
ms.date: 07/12/2024
1212
---
1313

1414
# RedisPubSubTrigger for Azure Functions
@@ -539,8 +539,8 @@ Here's binding data to listen to `keyevent` notifications for the delete command
539539
| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |:--------:| -------:|
540540
| `type` | Trigger type. For the pub sub trigger, the type is `redisPubSubTrigger`. | Yes | |
541541
| `connection` | The name of the [application setting](functions-how-to-use-azure-function-app-settings.md#settings) that contains the cache connection string, such as: `<cacheName>.redis.cache.windows.net:6380,password...` | Yes | |
542-
| `channel` | Name of the pub sub channel that is being subscribed to | Yes | |
543-
| `pattern` | If the channel is a pattern. | | |
542+
| `channel` | Name of the pub sub channel that is being subscribed to. | Yes | |
543+
| `pattern` | A boolean to indicate the given channel uses pattern mathching. If `pattern` is true, then the channel is treated like a _glob-style_ pattern instead of as a literal. | Yes | |
544544
| `name` | Name of the variable holding the value returned by the function. | Yes | |
545545
| `direction` | Must be set to `in`. | Yes | |
546546

articles/azure-functions/functions-bindings-cache-trigger-redisstream.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.author: franlanglois
88
ms.service: azure-functions
99
ms.custom: devx-track-dotnet, devx-track-extended-java, devx-track-js, devx-track-python
1010
ms.topic: reference
11-
ms.date: 05/20/2024
11+
ms.date: 07/12/2024
1212
---
1313

1414
# RedisStreamTrigger for Azure Functions
@@ -48,7 +48,6 @@ The `RedisStreamTrigger` reads new entries from a stream and surfaces those elem
4848

4949
### [Isolated worker model](#tab/isolated-process)
5050

51-
5251
```csharp
5352
using Microsoft.Extensions.Logging;
5453

0 commit comments

Comments
 (0)