gpt4 book ai didi

Azure 函数使用来自事件中心的消息并将其存储在 Redis 的 Azure 缓存中

转载 作者:行者123 更新时间:2023-12-02 08:30:49 25 4
gpt4 key购买 nike

编写一个 azure 函数来使用事件中心消息并写入 Redis 的 azure 缓存。无法找到以下解决方案

  1. 持续使用来自事件中心的消息(有可用的绑定(bind),但不确定是否与 Redis 的 Azure 缓存集成)
  2. 事件中心和 Azure 缓存是否有任何直接触发器可用于 Redis 集成

最佳答案

目前,没有与 Azure Redis 缓存 ( you can monitor this request in here ) 的输入/输出绑定(bind),您需要自行添加 nuget 包并添加/更新/删除键和值。

这是输入/输出绑定(bind)的完整列表:

https://learn.microsoft.com/en-us/azure/container-instances/container-instances-volume-azure-files

作为另一种选择,您也可以使用 Cosmos DB 作为缓存服务,更多信息:

https://github.com/Azure/Microsoft.Extensions.Caching.Cosmos

https://medium.com/@marcodesanctis2/using-azure-cosmos-db-as-your-persistent-geo-replicated-distributed-cache-b381ad80f8a0

https://dzone.com/articles/how-to-use-caching-with-azure-cosmos-db

编辑:我找到了一种使用 Azure Functions 自定义绑定(bind)的非官方方法。你可以尝试一下,但正如我所说,这不是官方的:

https://github.com/fbeltrao/AzureFunctionExtensions#examples

关于Azure 函数使用来自事件中心的消息并将其存储在 Redis 的 Azure 缓存中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61205371/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com