简体   繁体   English

完成lambda function后,存储在redis上的AWS lambda数据是否保留?

[英]Does AWS lambda data stored on redis remain after finish lambda function?

I want to use AWS lambda function with redis. But I concern that when lambda function finish then data on redis are gone.我想将 AWS lambda function 与 redis 一起使用。但我担心当 lambda function 完成时,redis 上的数据就消失了。

The lambda TTL is 15 minutes. lambda TTL 为 15 分钟。 If I set TTL of data that stored on redis as 20 minutes will the data stay or gone?如果我将存储在 redis 上的数据的 TTL 设置为 20 分钟,数据会保留还是消失?

As noted in the comments, Redis is nominally outside of the Lambda container.如评论中所述,Redis名义上在 Lambda 容器之外。 Unless you are doing somethign really crazy like using a custom image with a redis cache inside it for your lambda, then when your lambda container is de-commed your redis cache - not being involved in that decom - will remain the same.除非你正在做一些非常疯狂的事情,比如为你的 lambda 使用一个带有 redis 缓存的自定义图像,然后当你的 lambda 容器被取消时,你的 redis 缓存 - 不参与该 decom - 将保持不变。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 等待 function 在另一个 Lambda 中完成使用 AWS Lambda - Wait for function to finish using AWS Lambda inside another Lambda AWS Lambda - 无法在 lambda 函数中获取 Cognito 用户数据 - AWS Lambda - Can't get Cognito user data in lambda function AWS Lambda Function 不显示对 DynamoDb 的访问 - AWS Lambda Function Does Not Show Access to DynamoDb AWS 中的 Numpy lambda function - Numpy in AWS lambda function function 在从 aws 中的 s3 读取文件后将数据传递给 aws cognito 时退出 lambda 在 nodejs 中 - function exits when passing data to aws cognito after reading file from s3 in aws lambda in nodejs 在 AWS 中模拟一个 Lambda 层 Lambda Function - Mock a Lambda Layer in AWS Lambda Function 如何在另一个lambda之后执行AWS lambda - How to execute AWS lambda after another lambda AWS Lambda - AWS Lambda 为我的函数预配的 memory 分配了多少 CPU? - AWS Lambda - How much CPU does AWS Lambda allocates to my function's provisioned memory? AWS Lambda - 调用另一个 lambda 函数的方法 - AWS Lambda - Invoke a method of another lambda function 将 aws lambda 与 redis 连接时,任务在 23.02 秒错误后超时 - while connecting aws lambda with redis getting Task timed out after 23.02 seconds error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM