在 SAP BTP Kyma Runtime 上使用 Redis 读取和存储数据

📅 发布时间:2026/7/8 16:55:04 👁️ 浏览次数:
在 SAP BTP Kyma Runtime 上使用 Redis 读取和存储数据
https://developers.sap.com/tutorials/cp-kyma-redis-function.htmlThis sample provides a Redis deployment and two serverless functions that interact with it.这个例子提供了一个 Redis 应用部署和两个使用 Redis 的 serverless 函数。The function cache-order will be set to subscribe to an order.created event provided by the Commerce mock application.Commerce Mock 应用有一个 order.created 事件,cache-order 函数订阅这个事件。Once triggered, the function will perform an API call to the Commerce mock to obtain additional details regarding the order and then cache the information into Redis.一旦 order.created 事件触发,cache-order 函数响应该事件,调用一个 Commerce Mock API,读取创建订单的更多明细,然后将数据存储到 Redis 里。